Syntax files revisited
Posted: Wed Nov 12, 2003 12:53 am
I was editing a syntax file and added a keyword. I then closed down Textpad reopened the file (you really need a refresh command for that), and instantly noticed that the syntax hadn't taken hold. Perplexed I opened the syntax file and there it was - staring back at me.
So I deleted the document class and recreated it. Still didn't work - it was the same as the previous version.
Thinking that Windows had cached it I rebooted my PC. *bing* Still the same as before.
Annoyed I copied all the syn files from System to a folder in My Documents, deleted the document class from the list, closed Textpad, restarted it, created my class, went to select the only remaining .syn file and found a fully populated list!? Where did this populated list come from?
I quickly discounted the idead that maybe it listed all the syn files employed by other file types since where did the awk and autolisp stuff come from?
Then I went and totalled the registry entries regarding the document classes (I backed them up first) and reopened TextPad. They were gone. Create a new syntax and the list is still there.
I then checked out the other directories. Samples had syn files in it too. So I delete all those, go to create a document class and the remaining syntax in System appears - lo and behold it works.
So which directory should syntax files go into? Samples or system?
So I deleted the document class and recreated it. Still didn't work - it was the same as the previous version.
Thinking that Windows had cached it I rebooted my PC. *bing* Still the same as before.
Annoyed I copied all the syn files from System to a folder in My Documents, deleted the document class from the list, closed Textpad, restarted it, created my class, went to select the only remaining .syn file and found a fully populated list!? Where did this populated list come from?
I quickly discounted the idead that maybe it listed all the syn files employed by other file types since where did the awk and autolisp stuff come from?
Then I went and totalled the registry entries regarding the document classes (I backed them up first) and reopened TextPad. They were gone. Create a new syntax and the list is still there.
I then checked out the other directories. Samples had syn files in it too. So I delete all those, go to create a document class and the remaining syntax in System appears - lo and behold it works.
So which directory should syntax files go into? Samples or system?