Page 1 of 1

adding custom *.js files

Posted: Thu Apr 26, 2018 10:57 am
by roedygr
Where in the menu structure do you specify custom *.js code?
I thought it was in the Batch Wizard somewhere, but I don't see it.

Some padding to make the message long enough to be accepted.
More padding to make the message long enough to be accepted.

Re: adding custom *.js files

Posted: Thu Apr 26, 2018 11:28 am
by Albert Wiersch
Hello,

Are you wanting to add custom JavaScript snippets to a text inserter like the User Inserter? If so then this should help:
https://www.htmlvalidator.com/2018/docs ... figure.htm

If you have JavaScript documents you want to use as templates for new documents and want to add them to the File->New from Template menu then please see this help page:
https://www.htmlvalidator.com/2018/docs ... plates.htm

Re: adding custom *.js files

Posted: Thu Apr 26, 2018 12:31 pm
by roedygr
I have JS scripts you wrote for me. One keeps track of when files were last validated, and skips them if they haven't changed since then.
The other opens files automatically if they fail validation.

Re: adding custom *.js files

Posted: Thu Apr 26, 2018 1:45 pm
by Albert Wiersch
Oh... those aren't JS scripts though so I was really confused. :D Sorry about that.

You probably want to specify that TNPL script file in the Target List Options tab in the Batch Wizard after you've opened a target list. Specify it in the 'User functions files' field.