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?
highlander_ii: House and Wilson's feet as they step off the elevator with House's new flame cane between them ([H&W] with the new cane)

[personal profile] highlander_ii 2009-04-20 02:33 am (UTC)(link)
According to the FAQ should be the correct tag and should also still work. However, neither appears to be functioning correctly. I'm going to include this in my beta testing notes, just in case it's not already on the bug list.
melannen: Commander Valentine of Alpha Squad Seven, a red-haired female Nick Fury in space, smoking contemplatively (Default)

[personal profile] melannen 2009-04-20 02:50 am (UTC)(link)
I was playing with this earlier today while writing a tutorial, and they weren't working on any of the lj-based sites I play on. So it's not DW-specific, but it does seem to be an issue. (Oddly, I seem to remember them working on LJ before. So I dunno.)
highlander_ii: Jennifer Morrison smiling ([Cameron] 001)

[personal profile] highlander_ii 2009-04-20 02:52 am (UTC)(link)
Well, if nothing else, DW can fix it? *g*

It's not a tag I use often, so I hadn't noticed it working/not working anywhere, but I'll still toss it into my notes.
melannen: Commander Valentine of Alpha Squad Seven, a red-haired female Nick Fury in space, smoking contemplatively (Default)

[personal profile] melannen 2009-04-20 03:01 am (UTC)(link)
Whatever it is, DW can fix it! :D
melannen: Commander Valentine of Alpha Squad Seven, a red-haired female Nick Fury in space, smoking contemplatively (Default)

[personal profile] melannen 2009-04-20 03:00 am (UTC)(link)
I have this memory that < and > used to not work unless you used the ascii codes, and now they do. So I bet they fixed it so you could use those in plaintext unless it was an HTML tag, and broke < pre> while they were at it!

[personal profile] rho 2009-04-20 03:28 am (UTC)(link)
<raw-code> is the equivalent of <lj-raw> and functions in the same way as <lj-raw> did/does on LJ.

It isn't a way to let you post raw HTML and have the code show up rather than have it be interpreted as HTML, which I admit is a little bit confusing. What it actually does is equivalent to the "Disable Auto-Formatting" option. If you put things in <raw-code> </raw-code> tags then it'll ignore any new lines that you put in. This is useful if you're doing things like lists or tables and don't want extra random new lines to show up int he middle of them.

I've made a note of this for documentation purposes. The FAQ we have about DW markup was fairly hastily written, just to get the information out there, and will be redone before open beta. When we do, I'll make sure that it's more clear what <raw-code> actually does and doesn't do.

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.
Edited 2009-04-20 03:34 (UTC)
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. :)