a ([personal profile] alittlebirdy) wrote in [community profile] getting_started2009-04-20 12:14 pm
Entry tags:

Raw code

Hi, I'm a bit confused about what code tags to use when I want to display raw html code. A few of the entries linked about the place tell me I should be using the <raw-code> tag but that doesn't appear to work. I tried <pre> and <lj-raw> but none of them seem to work.

I know I can hard code the tags using &lt; to get a < and &gt; to get a > but I'm lazy. lol

Is this something that just doesn't work on DW yet, or am I using the wrong tags?
aithine: (Default)

[personal profile] aithine 2009-04-20 05:19 am (UTC)(link)
I also think that having a tag to let you enter code manually and have it show up as code sounds like a cool idea and something we might want to do. I'll pass it along, so it might appear some time in the future, but don't hold your breath for it.

That's easy enough to do with CSS. Just define the tag (say, <code>), style it, and use it. I've written it up here.
aithine: (Default)

[personal profile] aithine 2009-04-20 05:26 am (UTC)(link)
...and then I reread the original post and went duh, s/he wants HTML. Bah. *g* But this will work for everything else but (x)html. :)
aithine: (Zoë - brain missing)

[personal profile] aithine 2009-04-20 08:11 pm (UTC)(link)
You bet. :)