Hello. I have a set of 300+ static html files forming a corpus of texts and would like to add next and previous links to each file to make it possible to move through them sequentially. I can write a search and replace pattern to introduce the navigation elements but I am not sure of the best way of incrementing and decrementing numbers in the sequence to go from a heading of:
<h1>Text no. 240</h2> to something like: <h1><a href="text-no-239.html">previous</a> Text no. 240 <a href="text- no-241.html">next</a></h1> and so on. What would be the best approach to achieve this (other than using a database to generate the files automatically)? I would be very grateful for any advice! Charles -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
