I am trying to setup a Custom Document class in TextPad. I copied the pre-existing c.syn file (syntax color scheme for C language), adjusted as needed, but I have a couple of additional situations that I cannot figure put how to setup.
It works fine for keywords who only contain words, followed or preceded by spaces (e.g.: for goto if int long main register return).
But I would also like to have the following two situations to be included in keywords:
- lines that start with certain text (e.g.:"kwtext;" - if the line starts with "kw", highlight either the whole line all the way to ";" or just the "kw")
- structures like ";c=", which will be always in the middle of the line ("=" is already defined as a OperatorChar, so it will be greyed out by default, even if I define "c=" or ";c=" as keyword)
Is there any workaround to such situations?
Thanks a lot in advance for any ideas!