[TxMt] feature request/howto: use different color for known TeX commands
Daniel Käsmayr
daniel at kaesmayr.net
Wed Sep 6 12:55:40 UTC 2006
Max,
You could write your own Latex grammar and import the "original one".
Then you can have your own definitions like:
{ name = 'meta.package.acronym.latex';
begin = '(\\(?:ac|gls|acimm)[sfl]?(fn)?\{)';
end = '(\})';
captures = { 1 = { name = 'support.function.package.acronym'; }; };
patterns = (
{ name = 'support.function.package.acronym.acronym';
match = '[a-zA-Z,:0-9\-äöüß]+';
}
);
},
which you can then style and color as you like in your theme.
Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3996 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20060906/2f63d5f2/attachment.p7s>
More information about the textmate
mailing list