How about some UBBCode for inline code?

Status
Not open for further replies.

Greg Hines

Ars Tribunus Militum
1,686
Subscriptor++
It would be nice to have some UBB markup for inline code. For example, this: <code><div></code> requires me to type this:

<code>&lt;div&gt;</code>

It would be nice to be able to completely disable HTML from a post and still have the ability to denote inline code. It becomes a hassle to replace all <s with &lt;, >s with &gt;, and all &s to &amp; for any post with inline code of any sort. Especially because, when you take this into account, you'd have to replace these entities every time you decide to edit or quote a post.
 

Greg Hines

Ars Tribunus Militum
1,686
Subscriptor++
Originally posted by Magus`:
Is there no Disable HTML option on your post form? Below the instant ubbcode buttons...

btw, there is a UBB code tag :) just use [] instead of <>
There IS a disable HTML option, but by disabling HTML, you lose the ability to use the <code><code></code> element.

And I know full well about the [ code ] UBBCode, but it's strictly for block of code. You can't use [ code ] to do this: <code><code></code> in the middle of a sentence. It looks like
Code:
something like this
when you try.

I didn't post this without first knowing about the current capabilities of UBBCode. But there exists only UBBCode for blocks of code, not for inline code. Ideally, there should exist UBBCode for both. Even more ideal would be a much more robust UBBCode system so we could use tables and other nice, basic HTML features without having to touch HTML. This would make sure problems could be limited to one post (as opposed to me putting, say, <code><applet></code> in my post and not closing the element so the rest of the page cannot be displayed).

The idea of UBBCode is an excelent one. The execution is, however, quite lacking. There's a lot of wasted potential.

[This message was edited by MalusCaelestis on May 22, 2002 at 04:49.]
 
Status
Not open for further replies.