Monospace Text
We've added the [m] tag, which allows you to do monospace text inline. For example:
1 | This text is [m]monospace[/m]! |
becomes:
This text is monospace!
We've also added a toolbar button for it next to B, I, and U, so you'll never forget which letter it is.
Custom Languages in Code Blocks
The [code] block now lets you specify what language to use for syntax highlighting, in case it guesses incorrectly or doesn't guess at all. For example:
1 2 3 4 5 6 | [code language=c] int main() { printf("Hello, world!"); return 0; } [/code] |
becomes:
1 2 3 4 | int main() { printf("Hello, world!"); return 0; } |
You can use any language supported by Pygments, so go wild.
Reliable Nesting
The system now has a better understanding of BBCode's structure, particularly with regard to nested tags. For example:
1 2 3 4 5 6 7 8 9 | [ul] [li]Bullet point 1[/li] [li]Bullet point 2 [ol] [li]Number 1, featuring a quote: [quote]Somebody said something![/quote][/li] [li]Number 2[/li] [/ol] [/li] [/ul] |
becomes:
- Bullet point 1
- Bullet point 2
- Number 1, featuring a quote:
bvisness
Somebody said something!- Number 2
Flexible Syntax
The system is now more accepting and understanding of people's aesthetic choices when it comes to their BBCode tags. All of these are now valid ways of expressing the same [quote] tag:
1 2 3 | [quote=bvisness]Hello, world![/quote] [QUOTE="bvisness"]Hello, world![/quote] [ quote = 'bvisness' ]Hello, world![/ quote ] |
And more!
- [left], [center], and [right] now actually work.
- [youtube] now supports more types of YouTube URLs.
- The [spoiler] tag now works on Mac and other platforms where text selection looks different.
- Mismatched or improperly nested tags should be handled more gracefully and safely.
Plus, we're slightly tweaking CSS and visual appearance to make things a little more readable, and prevent annoying whitespace where you don't want it.
Make sure to let us know if you have any questions or feedback about these changes! And make sure to use some fancy new tags when you do. 😄
-Ben