I've been looking around and haven't found a syntax definition for Gforth to use in Sublime Text.
Is there one? I have found one for TextPad, but that's about it (see TextPad syntax definitions). Is it possible to convert the one for TextPad to work with Sublime Text 2?
To enable Syntax Highlighting click on “View” in the top bar, then hover your mouse over “Syntax”, and select your programming language from the list. Alternatively, if you save a document with a supported file extension, Sublime Text 3 will automatically apply the Syntax Highlighting for that language.
The colors of the syntax highlighting depend on Sublime Text's color theme. You can change the theme by going to Preferences > Color Scheme.
Language grammar file used by TextMate, a Mac OS X source code editor; contains a specification for the syntax of a programming language; used for adding syntax highlighting support for additional languages. TMLANGUAGE files are saved using XML formatting but may be encoded with a binary representation of the XML data.
I have Charles Turner's Forth TextMate bundle installed (in Sublime Text) and it works nicely.
If that's not good enough, perhaps you could extend it with patterns gleaned from the TextPad syntax file. To learn how Sublime Text syntax definitions work, I'd read through Syntax Definitions.
I hope that helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With