Sublime Forum

Help getting started with grammar syntax package

#1

Hi, I originally posted this in technical forum, but thought maybe this is more appropriate.

I would like to build a very basic ‘grammar package’ from Sublime which I could use to help add color to key words and enforce indentation.

It’s an XML-like mark-up language with specific markup.

I have read the documentation but am still stuck at how to begin.

Is there someone who is a guru on this forum who could point me in the right direction (a web page or ideally an example)?

Here is a sample of the markup:

[code]
*
^ YOUR NAME ^

first_name
first_name
Cool, thanks . I’m looking forward to helping you out
and getting to know you better.
XPREDICATESLOADED GOALS

* ^ YOUR EMAIL ADDRESS ^ email email Cool, thanks. When I get a chance, I'll send you an email to you at . X-LINE-BREAK XPREDICATESLOADED GOALS [/code]

I would want to color code the and enforce indentation (similar to what would be in XML. A bonus would be to “highlight” open and closing tags to make sure I remember to close tags.

0 Likes

#2

SublimeText uses the language definitions from TextMate.
And so you can find all interesting things about this in the TextMate manual.

0 Likes