- BBify your Z80, Axe, and Lua
- 24 Jun 2011 05:52:28 pm
- Last edited by Deep Toaster on 21 Dec 2011 05:56:08 pm; edited 3 times in total
- I needed practice with PHP.
- I needed practice with regex.
So I got an idea: Since I'd already made some Z80 ASM scheme files, why not make my own online scheme parser? So here's BBify, an online tool that wraps code in BBCode tags for syntax highlighting.
It's ugly but it works. I'll definitely be making it look better soon, and better yet, I'm planning to add customized colors. Right now I'm taking colors off the Tango scheme, but the way I have it set up I can just add some form elements and you'll be able to change the colors to whatever you want
Currently it only supports strings, numbers (all bases), comments, and directives, but all I have to do to add a new replacement is take the regex for it and stick it in an array. The engine is pretty much done (but buggy).
EDIT: Cemetech already has a mod that does this, doesn't it?