[ Previous: A. Your First NBBC Program | Next: C. Adding Your Own Tags ]
While the example in the previous section is simple, it's not very useful. Generally, most programs using NBBC will be structured like this:
The setup phase, where you create the new BBCode object and maybe alter its functionality a little (say, to add more smileys and BBCode rules, or remove existing ones), only needs to be done once in your script: The BBCode object, once it's been set up, can be reused again and again to convert different pieces of BBCode text in the same script.
[ Previous: A. Your First NBBC Program | Next: C. Adding Your Own Tags ]