HTML-Kit Tools update 20080308 makes it possible to modify keyword lists used by various colorizers. This feature can be used to add any missing keywords when using customized scripting languages. It could also be used to colorize user defined function names as keywords.
As of update 20080308, keyword lists are maintained under "Kit > Advanced > Edit Misc Data." This is likely to change in the future.
Adding Keywords
To append a new keyword, for example, to the PHP colorizer:
- Select "Kit > Advanced > Edit Misc Data" from the main menu. The "Kit" menu is located on the to right corner by default.
- Click "New"
- In the "Short Name" field, type "colorizer_html_keywords_php" without quotes.
- Optionally type a new "Title" and click "OK"
- Locate the "begin-text" – "end-text" block, and modify it as follows:
#@begin-text "default" [mode="append"]
mykeyword1
mykeyword2
#@end-text "default"
- Finally click "OK" to save changes and close the manager dialog. The next time a PHP script is opened, words "mykeyword1″ and "mykeyword2″ will be highlighted as keywords.
Replacing Keywords
To replace the full set of default keywords with a new set, change the mode to "replace" as shown below:
#@begin-text "default" [mode="replace"]
mykeyword1
mykeyword2
#@end-text "default"
Keyword List Names
Keywords used by virtually all colorizer types can be changed the same way, by using the following keyword list names:
colorizer_html_keywords_html
colorizer_html_keywords_php
colorizer_html_keywords_js
colorizer_html_keywords_vbs
colorizer_as_keywords
colorizer_aspjs_keywords
colorizer_aspvb_keywords
colorizer_bat_keywords
colorizer_cpp_keywords
colorizer_cs_keywords
colorizer_css_keywords
colorizer_java_keywords
colorizer_js_keywords
colorizer_pas_keywords
colorizer_pl_keywords
colorizer_py_keywords
colorizer_rb_keywords
colorizer_sh_keywords
colorizer_sql_keywords
colorizer_tcl_keywords
colorizer_vb_keywords