BB Code

by Metamorphman
Use bbcode in your games! [More]
To download this demo for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Metamorphman.BBCode##version=0

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:


Latest Version
Date added: Jan 17 2012
Last updated: Jul 20 2013
3 fans
Using BBCode is a nice way to handle how players are allowed to customize output text in your games without interfering with smilies such as >_> and <_< (in the case you're going to parse them into icons)

As an example, in bbcode, the counterpart to <b>test<b> would be [b]test[/b]

With the html_bb list, you are also able to shorten tags as well.
For example:
<font color = red>test</font>
is shortened as:
Easier, yes? :D

The bbParse proc provided also has the convenience of returning an empty string if there is nothing between or outside the tags. NOTE: make sure to call bbParse after using html_encode!