Reply to Re: Best syntax for bold <li> "Headings"

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация