Avatar

Well-formed BBCodes (Todo)

by Alfie ⌂, Vienna, Austria, Sunday, May 18, 2008, 14:55 (5815 days ago) @ Alex

Hi Alex,

still I don’t understand why it’s not possible to use BBCodes inside of [ inlinecode ] and/or [ code ].
As long as BBCodes are well-formed, it should be possible to translate them into valid XHTML…

Examples:
a     b     a: --> 5 blanks are kept (intentionally)
a     [b]b[/b]     a: --> bold not translated

aaaaaa

[ inlinecode ] is translated to

<code>foo</code>

whereas in [ code ] an enclosing paragraph is added to

<pre><code>foo</code></pre>


In all HTML-variants (including XHTML1.0 Strict) allowed inline elements for

<code></code>

are e.g., strong, em, sub, sup,…

--
Cheers,
Alfie (Helmut Schütz)
BEBA-Forum (v1.8β)

locked
15927 views

Complete thread:

 RSS Feed of thread