The SPAN Tag

The SPAN rule, which must be placed inside a RULES tag, highlights text between a start and end string. The start and end strings are specified inside child elements of the SPAN tag. The following attributes are supported:

Note that the AT_LINE_START, AT_WHITESPACE_END and AT_WORD_START attributes can also be used on the END element.

Here is a SPAN that highlights Java string literals, which cannot include line breaks:


Here is a SPAN that highlights Java documentation comments by delegating to the JAVADOC ruleset defined elsewhere in the current mode:


Here is a SPAN that highlights HTML cascading stylesheets inside <STYLE> tags by delegating to the main ruleset in the CSS edit mode: