Posted by Toby Inkster on 01/27/07 11:49
Joe wrote:
> I like to use S&R to put </li><li> at the end of each item. Saves me
> having to put <li> at the beginning. Often I just [ctrl]+v my way down
> the list
FWIW, the '</li>' tag is optional in HTML, so if you're not using XHTML,
creating a list in a reasonably featureful text editor is as simple as
selecting an area, doing a regular expression search and replace
equivalent to 's/^/<li>/g' and then topping and tailing it with
'<ul>...</ul>' or '<ol>...</ol>'.
Even if you're using XHTML, you just need to use a slightly more
complicated search and replace: s/^(.+)$/<li>\1<\/li>/g
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
[Back to original message]
|