products/sources/formale sprachen/Isabelle/Tools/jEdit/dist/doc/users-guide/mode-rule-keywords.html |
 |
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>The KEYWORDS Tag</title><meta name="generator" content="DocBook XSL Stylesheets V1.79.1"><link rel="home" href="index.html" title="jEdit 5.6 User's Guide"><link rel="up" href="writing-modes.html" title="Chapter 10. Mode Definition Syntax"><link rel="prev" href="mode-rule-import.html" title="The IMPORT Tag"><link rel="next" href="mode-syntax-tokens.html" title="Token Types"></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 KEYWORDS Tag</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="mode-rule-import.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-syntax-tokens.html">Next</a></td></tr></table><hr></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="mode-rule-keywords"></a>The KEYWORDS Tag</h2></div></div></div><p>The <code class="literal">KEYWORDS</code> tag, which must be placed inside a
<code class="literal">RULES</code> tag and can only appear once, specifies a list
of keywords to highlight. Keywords are similar to
<code class="literal">SEQ</code>s, except that <code class="literal">SEQ</code>s match
anywhere in the text, whereas keywords only match whole words. Words are
considered to be runs of text separated by non-alphanumeric
characters.</p><p>The <code class="literal">KEYWORDS</code> tag does not define any
attributes.</p><p>Each child element of the <code class="literal">KEYWORDS</code> tag is an
element whose name is a token type, and whose content is the keyword to
highlight. For example, the following rule highlights the most common
Java keywords:</p><pre class="programlisting"><KEYWORDS>
<KEYWORD1>if</KEYWORD1>
<KEYWORD1>else</KEYWORD1>
<KEYWORD3>int</KEYWORD3>
<KEYWORD3>void</KEYWORD3>
</KEYWORDS></pre></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="mode-rule-import.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-syntax-tokens.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">The IMPORT Tag </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Token Types</td></tr></table></div></body></html>
¤ Dauer der Verarbeitung: 0.15 Sekunden
(vorverarbeitet)
¤
|
Haftungshinweis
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.
|