This Is A Test

| | Comments (0)
Just by adding this code to Slash, we can now embed code in any arbitrary post:

    $str =~ s|<foo>(.*?)</foo>|'<P>' . strip_code($1) . '</P>'|egis;

You just wrap your code in <literal> and you are all set. I put the tags in as "foo" above because, well, putting "<literal> ... </literal>" inside "<literal> ... </literal>" won't work.

This is experimental. Let me know how it works out for you. use.perl.org

Leave a comment

<pudge/*> (pronounced "PudgeGlob") is thousands of posts over many years by Pudge.

"It is the common fate of the indolent to see their rights become a prey to the active. The condition upon which God hath given liberty to man is eternal vigilance; which condition if he break, servitude is at once the consequence of his crime and the punishment of his guilt."

About this Entry

This page contains a single entry by pudge published on May 14, 2001 5:46 AM.

Next Couple of Weeks was the previous entry in this site.

"Too" Busy? is the next entry in this site.

Find recent content on the main index or look in the archives to find all content.