Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Forth syntax highlighting for Sublime Text 2?

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?

like image 259
Dacto Avatar asked Jan 15 '13 08:01

Dacto


People also ask

How do I get syntax highlighting in Sublime Text?

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.

How do I change the syntax highlighting in Sublime Text?

The colors of the syntax highlighting depend on Sublime Text's color theme. You can change the theme by going to Preferences > Color Scheme.

What is Tmlanguage?

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.


1 Answers

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!

like image 115
AshleyF Avatar answered Sep 29 '22 05:09

AshleyF