adding custom *.js files

For technical support for all editions of CSS HTML Validator. Includes bug reports.
Post Reply
User avatar
roedygr
Rank V - Professional
Rank V - Professional
Posts: 371
Joined: Fri Feb 17, 2006 5:22 am
Location: Victoria BC Canada
Contact:

adding custom *.js files

Post by roedygr » Thu Apr 26, 2018 10:57 am

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.

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3363
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: adding custom *.js files

Post by Albert Wiersch » Thu Apr 26, 2018 11:28 am

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
Image
Albert Wiersch

User avatar
roedygr
Rank V - Professional
Rank V - Professional
Posts: 371
Joined: Fri Feb 17, 2006 5:22 am
Location: Victoria BC Canada
Contact:

Re: adding custom *.js files

Post by roedygr » Thu Apr 26, 2018 12:31 pm

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.

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3363
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: adding custom *.js files

Post by Albert Wiersch » Thu Apr 26, 2018 1:45 pm

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.
Image
Albert Wiersch

Post Reply