Login Register

Forum Test Only--Nothing Here

Below has code between html tags:
<button>this is a button</button>
Below is the same code between code tags:

post refs #6354 - took me a

post refs #6354 - took me a second but the second code tag should be inlining the <button> markup, which is how _most_ of the posts from user code is wrapped.

dante, not sure if you mean

dante, not sure if you mean it is a problem in geshi or that users shouldn't block their code as shown above?

sorry - was just pointing

sorry - was just pointing out that most of the blocks that exist within the forums (or at least the ones i've contributed) are wrapped in CODE tags. I was unaware of the HTML block highlighting. I'm not sure what the underlying problem is, I was just observing :)

roger, same here, typically

roger, same here, typically only use code blocks, but had to switch to js or html blocks when the geshi filters broke code tags...thanks, frank.

Dustin Machi

Dustin Machi

Have to use the Full HTML input filter for this I guess?

We'll have to ask neil about this stuff, I don't know how it works or what it does really. We're using the same code as before. The above test case looks like it works if set to full html...is that not normally a requirement for what you guys have been doing?

Thanks,
Dustin

no now that it's in full

no now that it's in full html the button is being parsed as an html element.

we're saying a good portion of the existing forum content is:

<code>
// here's my snippet
</code>

wrapping that in an HTML block makes it readable, which is what CODE used to do. many examples are blank as a result (the old ones).

also users cannot set full-html as an option, iirc.

"code" is the default code

"code" is the default code wrapping tag. It is the most basic. The others, e.g., html tag, js tag, etc. are the same as code, except the enclosed text is parsed for language highlighting. So, html, js, etc. are code with lang=html, etc. It's odd that html, js, etc. work but code stopped working. Good luck on a fix. Thanks.

Note: The first post should

Note: The first post should show both the "html" and "code" examples identically (other than syntax highlighting), both should look like the first (html) example. As of today, it still does not do this (at least here).

Also, somehow, we've lost the "Preview" ability when editing or creating a new post--not a good thing... :)

Below has code between html tags:

<button>this is a button</button>

Below is the same code between code tags:

this is a button

Both should look like the first, except for syntax highlighting.