PageRenderTime 114ms CodeModel.GetById 105ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/users-guide/mode-rule-seq.html

#
HTML | 23 lines | 23 code | 0 blank | 0 comment | 0 complexity | df116c09850686e87ebe12fbbdab3f48 MD5 | raw file
 1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>The SEQ Tag</title><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="jEdit 4.3 User's Guide"><link rel="up" href="writing-modes.html" title="Chapter 10. Mode Definition Syntax"><link rel="prev" href="mode-rule-mark-following.html" title="The MARK_FOLLOWING Tag"><link rel="next" href="mode-rule-seq-regexp.html" title="The SEQ_REGEXP Tag"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">The SEQ Tag</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="mode-rule-mark-following.html">Prev</a> </td><th width="60%" align="center">Chapter 10. Mode Definition Syntax</th><td width="20%" align="right"> <a accesskey="n" href="mode-rule-seq-regexp.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="mode-rule-seq"></a>The SEQ Tag</h2></div></div></div><p>The <code class="literal">SEQ</code> rule, which must be placed inside a
 2        <code class="literal">RULES</code> tag, highlights fixed sequences of text. The
 3        text to highlight is specified between opening and closing
 4        <code class="literal">SEQ</code> tags. The following attributes are
 5        supported:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">TYPE</code> - the token type to highlight the
 6                sequence with. See <a class="xref" href="mode-syntax-tokens.html" title="Token Types">the section called &#8220;Token Types&#8221;</a> for a
 7                list of token types.</p></li><li><p><code class="literal">AT_LINE_START</code> - If set to
 8                <code class="literal">TRUE</code>, the sequence will only be highlighted
 9                if it occurs at the beginning of a line.</p></li><li><p><code class="literal">AT_WHITESPACE_END</code> - If set to
10                <code class="literal">TRUE</code>, the sequence will only be highlighted
11                if it is the first non-whitespace text in the line.</p></li><li><p><code class="literal">AT_WORD_START</code> - If set to
12                <code class="literal">TRUE</code>, the sequence will only be highlighted
13                if it occurs at the beginning of a word.</p></li><li><p><code class="literal">DELEGATE</code> - if this attribute is
14                specified, all text after the sequence will be highlighted using
15                this ruleset. To delegate to a ruleset defined in the current
16                mode, just specify its name. To delegate to a ruleset defined in
17                another mode, specify a name of the form
18                <code class="literal"><em class="replaceable"><code>mode</code></em>::<em class="replaceable"><code>ruleset</code></em></code>.
19                Note that the first (unnamed) ruleset in a mode is called
20                &#8220;<span class="quote">MAIN</span>&#8221;.</p></li></ul></div><p>The following rules highlight a few Java operators:</p><pre class="programlisting">&lt;SEQ TYPE="OPERATOR"&gt;+&lt;/SEQ&gt;
21&lt;SEQ TYPE="OPERATOR"&gt;-&lt;/SEQ&gt;
22&lt;SEQ TYPE="OPERATOR"&gt;*&lt;/SEQ&gt;
23&lt;SEQ TYPE="OPERATOR"&gt;/&lt;/SEQ&gt;</pre></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="mode-rule-mark-following.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="writing-modes.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="mode-rule-seq-regexp.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">The MARK_FOLLOWING Tag </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> The SEQ_REGEXP Tag</td></tr></table></div></body></html>