broken syntax colouring

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Andrew van Renen

broken syntax colouring

Post by Andrew van Renen »

Has anyone seen a problem where new syntax files do not seem to work?

I have just added vbscript and jscript syntax files to my system (and created appropriate document classes), but it appears to be ignoring the keyword lists. It is also not picking out the comments properly.

I have used Textpad for years (and I use it for most of each working day - wonderful tool). and have been able to add new document classes before.

I am using version 4.5. (When is the next version coming out, and what additional features will it have???)
Andreas

Re: broken syntax colouring

Post by Andreas »

I noticed that document classes are recognized when a file gets opened.

If the file is already opened at the moment the class is created or changed, in most cases these changes are not recognized.

Close and reopen the files and it should work.
Roy Beatty

Re: broken syntax colouring

Post by Roy Beatty »

Also verify that your script files have the right extensions, that those extensions are associated with the new classes, that no other classes associate those extensions, that your class definitions contain the correct filepath/filenames for the new syntax files, and that you've specified the correct syntax syntax..
Andrew van Renen

Re: broken syntax colouring

Post by Andrew van Renen »

I suspect it might be something to do with the syntax definition file itself (in this case JScript.syn), since it seems to have been withdrawn from the add-ons page. Assigning something else (like javascript3.syn) to my new document class works fine.

Thanks for the replies.
Post Reply