Blosxom Trick: correcting <pre> behavior

I have modified the textrite blosxom plugin to correct the behavior with <pre> blocks (so now the preceding paragraph is closed before and reopened after the block). It was a matter of adding two lines in the (sed) format

$text=~ s/_text to replace_/_replacement text_/g;

Easy! A similar rule also allows to set italics by using underscores, but this is not enabled now because underscores might be needed in code snippets. It's better to use <i>.

Oct 31, 2003

textrite-pre (/webtricks)
2003-10-31, 13:22 [edit]


  Login:   Password:   [rss] [cc] [w3] [css]

© M. Vallisneri 2012 — last modified on 2010/01/29

Tantum in modicis, quantum in maximis