PageRenderTime 167ms CodeModel.GetById 163ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
HTML | 22 lines | 22 code | 0 blank | 0 comment | 0 complexity | d04a9a6a3b306041f33bd2ffb83eb9ac MD5 | raw file
 1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>The EOL_SPAN 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-span-regexp.html" title="The SPAN_REGEXP Tag"><link rel="next" href="mode-rule-eol-span-regexp.html" title="The EOL_SPAN_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 EOL_SPAN Tag</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="mode-rule-span-regexp.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-eol-span-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-eol-span"></a>The EOL_SPAN Tag</h2></div></div></div><p>An <code class="literal">EOL_SPAN</code> is similar to a
 2        <code class="literal">SPAN</code> except that highlighting stops at the end of the
 3        line, and no end sequence needs to be specified. The text to match is
 4        specified between the opening and closing <code class="literal">EOL_SPAN</code>
 5        tags. The following attributes are supported:</p><div class="itemizedlist"><ul type="disc"><li><p><code class="literal">TYPE</code> - The token type to highlight the
 6                span with. See <a class="xref" href="mode-syntax-tokens.html" title="Token Types">the section called &#8220;Token Types&#8221;</a> for a list
 7                of token types.</p></li><li><p><code class="literal">AT_LINE_START</code> - If set to
 8                <code class="literal">TRUE</code>, the span will only be highlighted if
 9                the start sequence 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 span will only be highlighted if
11                the sequence is the first non-whitespace text in the
12                line.</p></li><li><p><code class="literal">AT_WORD_START</code> - If set to
13                <code class="literal">TRUE</code>, the span will only be highlighted if
14                the start sequence occurs at the beginning of a word.</p></li><li><p><code class="literal">DELEGATE</code> - text inside the span will be
15                highlighted with the specified ruleset. To delegate to a ruleset
16                defined in the current mode, just specify its name. To delegate
17                to a ruleset defined in 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><li><p><code class="literal">MATCH_TYPE</code> - Controls how the start of
21                the sequence will be highlighted. See <a class="xref" href="mode-match-type.html" title="The MATCH_TYPE Attribute">the section called &#8220;The MATCH_TYPE Attribute&#8221;</a> for more information.</p></li></ul></div><p>Here is an <code class="literal">EOL_SPAN</code> that highlights C++
22        comments:</p><pre class="programlisting">&lt;EOL_SPAN TYPE="COMMENT1"&gt;//&lt;/EOL_SPAN&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-span-regexp.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-eol-span-regexp.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">The SPAN_REGEXP Tag </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> The EOL_SPAN_REGEXP Tag</td></tr></table></div></body></html>