<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>
<html lang="en" xml:lang="en">

<head>
	<meta charset="UTF-8"/>
	<meta name="keywords" content="syntax style"/>
	<link rel="start" href="../CotEditorHelp.html"/>
	<link rel="index" href="../xpgs/xall.html"/>
	<link rel="stylesheet" href="../../Shared/sty/standard.css"/>
	<title>Customizing syntax coloring rules</title>
</head>

<body>
<nav><ul>
	<li><a href="../CotEditorHelp.html">CotEditor Help</a></li>
</ul></nav>


<h1>Customizing syntax coloring rules</h1>

<p>Syntax coloring rules are determined by the following settings:</p>

<table>
	<tr><th>Begin-string</th><td>A string which denotes the beginning of the search pattern. This is required in order to search the code elements you want to be colored.</td></tr>
	<tr><th>End-string</th><td>A string which denotes the end of the search pattern. This can be left blank.</td></tr>
	<tr><th>IC</th><td>If this option is selected, case will be ignored during the search (IC stands for Ignore Case). For example, if you set "abc" as Begin-string and check IC, "ABC" or "abc" or "Abc" in your document will be matched.</td></tr>
	<tr><th>RE</th><td>If this option is selected, both Begin-string and End-string will be considered as regular expressions (RE stands for Regular Expression).</td></tr>
</table>

<ul>
	<li>A definition whose Begin-string is blank will be ignored.</li>
	<li>A definition whose End-string is blank and RE is turned off will be used for defining the completion list as well.</li>
	<li>The RE setting affects both Begin-string and End-string, which means they should be written in regular expression or plain form both together.</li>
</ul>


<section id="cf">
<h2>See also</h2>
<ul>
	<li><a href="../pgs/about_outlinemenu_settings.html">Outline Menu settings</a></li>
	<li><a href="../pgs/about_regex.html">Regular Expression Syntax</a></li>
</ul>
</section>

</body>
</html>
