BBCode feature request

Status
Not open for further replies.

Lord Pachelbel

Ars Praefectus
5,499
Subscriptor++
Please provide a way to format inline runs of preformatted/fixed-width text, similar to Markdown's `inline code` syntax. This post is itself an example of why this would be useful; I'm using bold tags as an alternative and it's kind of ugly.

I've seen it done by adding the word "single" to a code tag, i.e. [code single]inline code[/code] but I think [code inline]inline code[/code] would make more sense. Both ways are wordy, though.

Actually, is it possible to add Markdown support, even if it's just a subset?
 

Lord Pachelbel

Ars Praefectus
5,499
Subscriptor++
A pre tag would preserve whitespace but would still do the same block-level thing that the code tag does.

I found out the Something Awful forum has a tag called fixed, and because it's a text-formatting tag like b and i it doesn't create a new block. So that's what I'm looking for.

[fixed]Does it work here on Ars?[/fixed]

Nope.

Edit: More thoughts:
  • If there were a [pre] tag, I would expect it to create a new block and preserve whitespace, and I'd probably expect it to change the font to something fixed-width, but it wouldn't necessarily have any other style changes to differentiate it from normal text such as a different background color or border. This is how the HTML <pre> tag works.
  • If there were a [fixed] tag, I would expect it to do everything the code tag does except it would keep its text inline instead of creating a new block. This is how the HTML <code> tag works.
  • The BBcode 'code' tag should remain as-is: it creates a new block, preserves whitespace, changes the font to something fixed-width, and has additional styles to visually enclose it. Functionally it's a shorthand way of doing <pre><code>some code</code></pre> in HTML. When the code tag is used, phpBB's HTML output is actually two <div> tags with some classes attached, a div containing a title (usually "Code") and a <div> containing the actual code the user entered.
 
Status
Not open for further replies.