I was mainly inspired by @aetheria’s TextWrangler mod and figured I’d make one for Sublime Text 2. In theory this should also work with Textmate as well, but I haven’t tried.
It highlights *commands, #choices, ${stuff}, *comments, (±)variables, stuff in quotation marks, and a todo added for my own convenience (just type TODO or todo anywhere). The screenshot is taken with the Twilight theme, which I find easiest on the eyes.
Install: copy CS.tmLanguage to your package directory, which you can find via Preferences>Browse Packages. Restart Sublime if necessary. If it doesn’t automatically recognize a .txt file as a CS file, you can change it manually via View>Syntax>CS. After the first file it should remember automatically.
If you find something that should be highlighted and isn’t, please do tell me! The source (CS.JSON-tmLanguage) was made with AAA PackageDev if you want to play around with it.
@aetheria Actually, there’s a free version of Sublime available as well, if you want to try it out. It’s a pretty good editor, but the free version bugs you every 100 saves with a popup. Dx
And yeah, it is! However, it’s still pretty far from hatching, because I want to get a big chunk of it done before putting it up for beta.
Please tell me what I’m doing wrong. All the packages appear to have the extension…
.sublime-package
…but I don’t see any with an extension of…
.tmLanguage
…so did I perhaps put cs.tmLanguage in the wrong directory? Or is the directory with all the .sublime-package files the right one? Because when I bring up…
I think we’ve had this discussion before but I just wanted to point out that there isn’t a “free” version of sublime, it’s an evaluation version. You’re expected to buy it if you find yourself using it regularly. Details I know, by all means use it without paying that’s your choice but for the sake of the developers I wanted to point that out. Strictly speaking not buying it but using it regularly is theft.
Regardless good to see more syntax highlighters! Thanks!
@DaveDPF I’ve been going without a computer for a while, but I’ll try to get access to one sometime next week and see what I can do. Sorry for the late reply.
Instead of sticking the .tmLanguage file in ~\Sublime 2\Packages, try putting it in either ~\Sublime 2\Packages\User or ~Sublime 2\Packages\CS (create a new folder for it).
If this turns out to be the solution, I’m going to blush. It’s a pretty silly mistake on my part… @_@