I’m in the very, very early stages of writing my own ChoiceScript game, and I quickly realized that if I was going to spend hours writing this stuff I would need some decent highlighting. I noticed the wiki has a syntax highlighter for Notepad++, but I use a Mac and I like TextWrangler. So, I rolled my own. And now that I’ve got it working, I’d like to share it with the community, in hopes someone might find it useful:
With this installed, TextWrangler will highlight commands (I’ve included all commands that have pages in the wiki), comments, and option text in your ChoiceScript files.
(And yes, that last is kind of a hack with the re-purposing of string delimiters… I make no apologies! ChoiceScript doesn’t need real string highlighting )
To install the language module, save the .plist file to ~/Library/Application Support/TextWrangler/Language Modules. Then you should be able to select “ChoiceScript” from the language menu at the bottom of your TextWrangler window and see lovely highlighting.
For those who haven’t heard of it, TextWrangler is a free programmer’s text editor for Mac. I definitely recommend checking it out if you’ve been writing your games in TextEdit.
Finally, if you see anywhere the module could use some corrections or tweaks, please let me know! I’m going to be using this for writing my own games so I want it to be as good as possible.