highlighting of some custom tags within HTML

highlighting of some custom tags within HTML

1
NewbieNewbie
1

    May 31, 2006#1

    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.

    6,683583
    Grand MasterGrand Master
    6,683583

      May 31, 2006#2

      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
      -->
      <!--
      []
      Best regards from an UC/UE/UES for Windows user from Austria