Hi
I'm using 5.3.1 and having a problem with javascript.syn.
I've copied the java.syn and renamed javascript.syn.
If I select this through Document Properties and tell it to save, while the file remains open the syntax shows ok. When reopening the file the syntax is removed.
I have the Document defined and assigned the .syn file in the Document Class, but it doesn't want to stick.
I have no problems with css or html syntax.
What have I missed?
Regards
javascript syntax not saving
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
javascript syntax not saving
E=Mc^2 We are but Energy. Life is ... . Live
Re: javascript syntax not saving
As Java and Javascript are quite different languages, this doesn't make much sense.Reilly wrote:Hi
I'm using 5.3.1 and having a problem with javascript.syn.
I've copied the java.syn and renamed javascript.syn.
Of course - settings done in Document Properties are temporary.Reilly wrote: If I select this through Document Properties and tell it to save, while the file remains open the syntax shows ok. When reopening the file the syntax is removed.
Strange - this should work.Reilly wrote: I have the Document defined and assigned the .syn file in the Document Class, but it doesn't want to stick.
Do you have multiple instances of Textpad open?
If so: close all except one, make the changes to the document class in this single instance, close it, and then reopen.
Thanks MudGuard but as I was fairly new to js, I thought it best to have a separate file in case I wanted to change some aspect of the syntax.
No, I only had one copy of Textpad open.
I've also tried it with the java.syn. This also didn't work, which is why I suspect I've missed/mucked up something along the way. My question really is, what?
Regards
No, I only had one copy of Textpad open.
I've also tried it with the java.syn. This also didn't work, which is why I suspect I've missed/mucked up something along the way. My question really is, what?
Regards
E=Mc^2 We are but Energy. Life is ... . Live
There's nothing wrong with using a separate file for javascript syntax. But it is wrong to use a java syntax file for javascript.Reilly wrote:Thanks MudGuard but as I was fairly new to js, I thought it best to have a separate file in case I wanted to change some aspect of the syntax.
Use a javascript syntax file for javascript.
If you don't have one, download one from here (download - addons - syntax iirc)