Changing keywords used by the colorizer

March 12th, 2008 by HTML-Kit Support      Tags: HTML-Kit Tools       Views: 1220
Support Home     Next: Tools update 20080321.....     Previous: Tools update 20080308
VN:F [1.7.3_972]
Rating: 0.0/5 (0 votes cast)
 

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

Was this article helpful?
This did not answer my questionThis answered my question (+1 rating, 1 votes)
Loading ... Loading ...
Share this on:
  • Twitter
  • Digg
  • StumbleUpon
  • Facebook
  • MySpace
  • del.icio.us
  • Sphinn
  • LinkedIn
  • Google Bookmarks
  • Live
  • Yahoo! Buzz
  • email
  • Print
 
Do you have a question that requires a reply? Please post it here for a timely and friendly reply.
 
If you have a comment, you can post it below. Not all comments are read, so be sure to use the support forum instead if you need an answer.
 
Leave a Comment or use the support forum if you have a question.

 

© 2009 HTML-Kit.com. All Rights Reserved.  |  Privacy Statement   
HTML design aid