Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

pudge (1)

pudge
  (email not shown publicly)
http://pudge.net/
AOL IM: Crimethnk (Add Buddy, Send Message)

I run this joint, see?

Journal of pudge (1)

Wednesday March 13, 2002
06:09 PM

ECODE

[ #3502 ]

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.]

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • this is a test
  • Makes it sound like an error....

    ESTAT_OFLW
    ESTAT_UFLW
    ENOTEA
    EPINTISEMPTY
    ECODE

    Maybe we could reserve it for people who try and code in templates when they really should be using a Plugin or something.

    Anyway, thanks. Entering code in my jounral was driving me nuts.