Keyword Highlighting in TextPad

TextPad's Syntax Definition Files

Syntax definition files contain the information TextPad uses to highlight keywords in different colors. A standard set is provided for common programming languages, and contributed files are available from the TextPad web site.

One such contributed file is javascript_html.syn. You can use it to highlight both HTML and JavaScript keywords in an .html file. Right-click the link, choose Save Link As..., and save it to your C:\Program Files\TextPad\System folder (or whatever the path is to your TextPad folder). Then follow these steps to configure TextPad:

To customize syntax highlighting for the document class "HTML"

Start TextPad.
Choose Preferences from the Configure menu, (for the Preferences dialog box)
Click the "+" next to Document Classes.
Click the "+" next to the document class HTML
Select Syntax.
Check "Enable syntax highlighting".
Select javascript_html.syn  from the list.
Click Apply or OK.
You can now open or create an .html file that contains JavaScript to see the keyword highlighting.