Well this site is written in PHP (yes), and Xarn already had written a sexpcode plugin for wordpress. So I just ported that as a class and used it here.
I don't actually program or even use PHP, but when I added his plugin, it constantly outputted warnings. I don't know if it's my fault or not, but I had to change a good amount of it. I also removed some of its features because I either didn't care about them, or because they got broken in the process.
Mainly these were changed:
- Higher-Arity functions: Basically functions that take arguments like url, or code. The url one isn't supported as a bbcode due to abuse anyway, so this feature is completely gone.
- img function: completely gone.
- Alternative Verbatim syntax: I forgot what the exact problem with this one was, but it kept breaking valid sexpcode because somewhere this syntax made everything become verbatim.
Here's his code:
https://github.com/Cairnarvon/SexpCode-for-WordPress/blob/master/sexpcode.php