Color Syntax Problems
Posted: Fri May 04, 2007 11:29 pm
Currently I am working With TextPad 5.0.3 & all my syntax definition files (*.syn) reside in D:\Program Files\TextPad 5\Samples. Even the path of the syntax definition folder (under Configure-->Preferences-->Folders-->Syntax) has been set to D:\Program Files\TextPad 5\Samples.
For ASP files, I am using a syntax definition file named asp.syn. Recently I added a few keywords in asp.syn which weren't present earlier like for e.g. With but strangely TextPad doesn't highlight the newly added keywords.
I even navigated to Configure-->Preferences-->Document Classes-->ASP-->Syntax & changed the syntax definition file to cpp.syn but when I closed TextPad & re-opened TextPad, the keywords in the ASP files should have been highlighted as per cpp.syn but the keywords still adhered to asp.syn! Even if I uncheck the Enable syntax highlighting checkbox for the ASP document class, then ASP files still maintain the syntax color as per asp.syn! Note that I deleted *.ASP from the list of Files in class HTML in the HTML document class.
So irrespective of whether I enable/disable syntax highlighting for the ASP document class or set the syntax definition file for the ASP document class to some syntax definition file other than asp.syn, the keywords in ASP files ALWAYS remain highlighted according to asp.syn. At the same time, any newly added keywords which I add in asp.syn (like With) refuse to highlight.
What could be going wrong? Can someone please give me some idea on how do I overcome this issue?
I have been using TextPad for quite some time now but this is the first time I am encountering such eccentricities!
Thanks,
Arpan
For ASP files, I am using a syntax definition file named asp.syn. Recently I added a few keywords in asp.syn which weren't present earlier like for e.g. With but strangely TextPad doesn't highlight the newly added keywords.
I even navigated to Configure-->Preferences-->Document Classes-->ASP-->Syntax & changed the syntax definition file to cpp.syn but when I closed TextPad & re-opened TextPad, the keywords in the ASP files should have been highlighted as per cpp.syn but the keywords still adhered to asp.syn! Even if I uncheck the Enable syntax highlighting checkbox for the ASP document class, then ASP files still maintain the syntax color as per asp.syn! Note that I deleted *.ASP from the list of Files in class HTML in the HTML document class.
So irrespective of whether I enable/disable syntax highlighting for the ASP document class or set the syntax definition file for the ASP document class to some syntax definition file other than asp.syn, the keywords in ASP files ALWAYS remain highlighted according to asp.syn. At the same time, any newly added keywords which I add in asp.syn (like With) refuse to highlight.
What could be going wrong? Can someone please give me some idea on how do I overcome this issue?
I have been using TextPad for quite some time now but this is the first time I am encountering such eccentricities!
Thanks,
Arpan