[TxMt] Re: How To Highlight Custom Syntax
ghudson at welcoa.org
Fri Nov 6 15:57:59 UTC 2009
Hi, Allan. Thanks for jumping in to help me.
I was able to sort of understand some things like I am obviously going to
have to declare a pattern (begins with "%link=" ends with "%"), but when I
read about rule keys like "name" and "match", I am lost. I am primarily an
HTML/CSS guy, and I do not delve much into other languages just yet.
Here's a line of code in the example that I simply do not understand, at
7 match = '\b(if|while|for|return)\b';
I did look at the existing HTML grammar, but that did not make much sense to
me, either. Should I start somewhere else in the manual? I think I'm missing
some basic concepts here.
Thanks, again, for your help.
Wellness Council of America
9802 Nicholas Street, Ste. 315 | Omaha, NE 68114
Phone: 402.827.3590 | Fax: 402.827.3594
ghudson at welcoa.org | www.welcoa.org
From: Allan Odgaard <mailinglist at textmate.org>
Reply-To: TextMate users <textmate at lists.macromates.com>
Date: Fri, 6 Nov 2009 04:47:47 +0100
To: TextMate users <textmate at lists.macromates.com>
Subject: [TxMt] Re: How To Highlight Custom Syntax
On 5 Nov 2009, at 00:06, Graden Hudson wrote:
> I would like to know how to extend the syntax styling to highlight a
> proprietary syntax in my code [...]
> Here is what I was reading:
That is indeed the canonical guide explaining how grammars work.
So how much were you able to follow? Do you know regular expressions?
Did you find the existing HTML grammar and look at that?
textmate mailing list
textmate at lists.macromates.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the textmate