a (
alittlebirdy) wrote in
getting_started2009-04-20 12:14 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
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 < to get a < and > 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?
I know I can hard code the tags using < to get a < and > 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?
no subject
no subject
no subject
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.
no subject
no subject
no subject
no subject
no subject
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.
no subject
no subject
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.
no subject
no subject
no subject
no subject
no subject