ECODE

| | Comments (0)
OK, ECODE should work now. It's just a pseudotag that allows you to embed code in with Plain Old Text or HTML Formatted post modes. It looks exactly like the Code post mode -- which essentially means that it converts whitespace to a combination of space and   entities, and wraps it in TT tags -- except that it is indented (with BLOCKQUOTE).

CREATE TABLE users_hits (
    uid mediumint UNSIGNED NOT NULL,
    lastclick TIMESTAMP,
    hits int DEFAULT '0' NOT NULL,
    PRIMARY KEY (uid)
) TYPE = myisam;

Yay. Also, if you need to put "<ECODE>" in your text, you can supply your own end tag:

<ECODE END="LALALA">
You can do <ECODE>...</ECODE> now!  Yay for you!
</LALALA>

Nifty. For those who have used ECODE or LITERAL (a deprecated synonym of ECODE) before, the rest works the same, except that beginning and trailing whitespace are now stripped, making it easier to use in Plain Old Text mode, where before you might get a lot of blank lines if you weren't careful.

[Previously referenced bug now fixed.] 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 March 13, 2002 3:09 PM.

Terrorists #1 and #2, Your Visas Are Ready was the previous entry in this site.

SPAM and pobox.com is the next entry in this site.

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