Syntax highlighting, code folding, brace matching, code indenting, and function list
by cracknuts » Wed May 31, 2006 5:54 am
i wanted to introduce some additional tags within the HTML which is a variant of the HTML comment tag "<!-- ... -->". my custome tag would look sth like this "<!--[selector ...]-->".
i tried appending this to the default wordfile.txt under the HTML section:
/C3"TSL Selectors" STYLE_EXTENSION
<!--[/comment]-->
<!--[comment
it just doest work even tho i took off the "Block Comment On". pls help and thanks in anticipation.
-

cracknuts
- Newbie
-
- Posts: 1
- Joined: Tue May 30, 2006 11:00 pm
by Mofi » Wed May 31, 2006 6:48 am
This is not working because <>[/ are also delimiter characters with a special handling of <> if HTML_LANG is present in the language definition line. So "<!--[/comment]-->" and "<!--[comment" are terms and not words. The syntax highlighting engine only highlights words and not terms.
A possible solution could be
/Marker Characters = "[]"
/C3"TSL Selectors" STYLE_EXTENSION
-->
<!--
[]
-

Mofi
- Grand Master

-
- Posts: 4058
- Joined: Thu Jul 29, 2004 11:00 pm
- Location: Vienna
Return to Syntax Highlighting