<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://bfwiki.tellefsen.net//index.php?action=history&amp;feed=atom&amp;title=Highlight_Patterns_Modification</id>
	<title>Highlight Patterns Modification - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://bfwiki.tellefsen.net//index.php?action=history&amp;feed=atom&amp;title=Highlight_Patterns_Modification"/>
	<link rel="alternate" type="text/html" href="https://bfwiki.tellefsen.net//index.php?title=Highlight_Patterns_Modification&amp;action=history"/>
	<updated>2026-05-23T19:53:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://bfwiki.tellefsen.net//index.php?title=Highlight_Patterns_Modification&amp;diff=1791&amp;oldid=prev</id>
		<title>Bill Valaski: moved Man 2 ch08s12 to Highlight Patterns Modification:&amp;#32;Title updates (BV)</title>
		<link rel="alternate" type="text/html" href="https://bfwiki.tellefsen.net//index.php?title=Highlight_Patterns_Modification&amp;diff=1791&amp;oldid=prev"/>
		<updated>2010-07-09T00:24:44Z</updated>

		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/index.php/Man_2_ch08s12&quot; class=&quot;mw-redirect&quot; title=&quot;Man 2 ch08s12&quot;&gt;Man 2 ch08s12&lt;/a&gt; to &lt;a href=&quot;/index.php/Highlight_Patterns_Modification&quot; title=&quot;Highlight Patterns Modification&quot;&gt;Highlight Patterns Modification&lt;/a&gt;: Title updates (BV)&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:24, 9 July 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Bill Valaski</name></author>
	</entry>
	<entry>
		<id>https://bfwiki.tellefsen.net//index.php?title=Highlight_Patterns_Modification&amp;diff=1117&amp;oldid=prev</id>
		<title>Fal7i at 11:29, 31 December 2009</title>
		<link rel="alternate" type="text/html" href="https://bfwiki.tellefsen.net//index.php?title=Highlight_Patterns_Modification&amp;diff=1117&amp;oldid=prev"/>
		<updated>2009-12-31T11:29:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:29, 31 December 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;__NOTOC__&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;__NOEDITSECTION__&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Man2top&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Man2top&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|lang=en&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|lang=en&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|next=Man 2 ch09&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|next=Man 2 ch09&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== 12. Modifying the highlighting patterns ==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The highlight patterns are build from Perl compatible regular expressions. A pattern has options for coloring and styling the text it matches. Within a match other patterns can be used to color parts of that match. There are three types of patterns:  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The highlight patterns are build from Perl compatible regular expressions. A pattern has options for coloring and styling the text it matches. Within a match other patterns can be used to color parts of that match. There are three types of patterns:  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l102&quot;&gt;Line 102:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 100:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As an exercise you may want to add the highlighting patterns for the xsl stylesheet file type created previously. They will be based on the xml patterns with just small changes.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As an exercise you may want to add the highlighting patterns for the xsl stylesheet file type created previously. They will be based on the xml patterns with just small changes.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{note|text=&lt;/ins&gt;If you check the force bold weight check box, you should also check that the font you use has a bold variant in the Editor tab of the Preferences panel.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[File:Man2_note.png]] &lt;/del&gt;If you check the force bold weight check box, you should also check that the font you use has a bold variant in the Editor tab of the Preferences panel.&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Fal7i</name></author>
	</entry>
	<entry>
		<id>https://bfwiki.tellefsen.net//index.php?title=Highlight_Patterns_Modification&amp;diff=970&amp;oldid=prev</id>
		<title>Fal7i: Created page with &#039;__NOTOC__ __NOEDITSECTION__ {{Man2top |lang=en |rev=2.0.0 |st=d |Title=12.&amp;nbsp;Modifying the highlighting patterns |prev=Man 2 ch08s11 |Subtitle=Chapter&amp;nbsp;VIII.&amp;nbsp;Customis…&#039;</title>
		<link rel="alternate" type="text/html" href="https://bfwiki.tellefsen.net//index.php?title=Highlight_Patterns_Modification&amp;diff=970&amp;oldid=prev"/>
		<updated>2009-12-29T18:42:00Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;__NOTOC__ __NOEDITSECTION__ {{Man2top |lang=en |rev=2.0.0 |st=d |Title=12. Modifying the highlighting patterns |prev=Man 2 ch08s11 |Subtitle=Chapter VIII. Customis…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
__NOEDITSECTION__&lt;br /&gt;
{{Man2top&lt;br /&gt;
|lang=en&lt;br /&gt;
|rev=2.0.0&lt;br /&gt;
|st=d&lt;br /&gt;
|Title=12.&amp;amp;nbsp;Modifying the highlighting patterns&lt;br /&gt;
|prev=Man 2 ch08s11&lt;br /&gt;
|Subtitle=Chapter&amp;amp;nbsp;VIII.&amp;amp;nbsp;Customising Bluefish&lt;br /&gt;
|next=Man 2 ch09&lt;br /&gt;
}}&lt;br /&gt;
== 12. Modifying the highlighting patterns ==&lt;br /&gt;
The highlight patterns are build from Perl compatible regular expressions. A pattern has options for coloring and styling the text it matches. Within a match other patterns can be used to color parts of that match. There are three types of patterns: &lt;br /&gt;
&lt;br /&gt;
# Start pattern and end pattern: that is two distinct patterns, match from the start pattern to the end pattern&lt;br /&gt;
# Only start pattern: that is a unique pattern that matches from start to end&lt;br /&gt;
# Subpattern from parent: that is a subpattern from the parent pattern, specified by the range in the parent pattern.&lt;br /&gt;
&lt;br /&gt;
One specific pattern can also be used within several other parent patterns. The parent-match option is a regular expression that defines all parents for a certain pattern. If empty it will default to ^top$, so basically it will be on the top level.&lt;br /&gt;
&lt;br /&gt;
So how does it work? Lets take a look at a little example text, a piece of PHP code within some HTML code: &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;?php&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 // this is a comment ?&amp;gt;&lt;br /&gt;
 ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first thing the highlighting engine does is finding the pattern that has the lowest match. Using the default patterns for PHP, the pattern named HTML: &lt;br /&gt;
&lt;br /&gt;
[[File:Man2_highlighting_pattern1.png|none|frame|The HTML Pattern]]&lt;br /&gt;
&lt;br /&gt;
has a match at position 0: &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So now the highlighting engine searches for the lowest match in all subpatterns of HTML, in the region matched by a type 2 pattern. Again, the lowest match will count. The pattern named &amp;lt;nowiki&amp;gt;&amp;lt;html&amp;gt; Tags&amp;lt;/nowiki&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
[[File:Man2_highlighting_pattern2.png|none|frame|The &amp;lt;html&amp;gt; Tags Pattern]]&lt;br /&gt;
&lt;br /&gt;
has a match at position 1. This pattern is a type 3 pattern, so it matches a subpattern of the parent: &lt;br /&gt;
&lt;br /&gt;
 p&lt;br /&gt;
&lt;br /&gt;
The match from subpattern &amp;lt;nowiki&amp;gt;&amp;lt;html&amp;gt; Tags&amp;lt;/nowiki&amp;gt; ends at position 2 and it does not have any child patterns, so the highlighting engine continues at position 2 with all subpatterns from HTML. A type 2 pattern named HTML Attributes: &lt;br /&gt;
&lt;br /&gt;
[[File:Man2_highlighting_pattern3.png|none|frame|The HTML Attributes Pattern]]&lt;br /&gt;
&lt;br /&gt;
has the lowest match: &lt;br /&gt;
&lt;br /&gt;
 align=&amp;quot;center&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This pattern does have a child pattern, again a type 3 pattern called HTML Attribute Contents: &lt;br /&gt;
&lt;br /&gt;
[[File:Man2_highlighting_pattern4.png|none|frame|The HTML Attribute Contents Pattern]]&lt;br /&gt;
&lt;br /&gt;
matching: &lt;br /&gt;
&lt;br /&gt;
 &amp;quot;center&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The pattern HTML Attribute Contents does not have any child patterns, and subpatterns of HTML Attributes do not have any more matches, and also HTML subpatterns do not have any more matches. So we are back on the main level, the remaining code to highlight is: &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;?php&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 // this is a comment ?&amp;gt;&lt;br /&gt;
 ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now a pattern named PHP Block: &lt;br /&gt;
&lt;br /&gt;
[[File:Man2_highlighting_pattern5.png|none|frame|The PHP Block Pattern]]&lt;br /&gt;
&lt;br /&gt;
has the lowest match. This is a type 1 pattern, so the highlight engine continues with all the remaining code, but it will not only search for the lowest match of the child patterns of PHP Block, but it will also ue it for the end pattern of PHP Block. The lowest match in this example is a pattern named Comment (C++/single line): &lt;br /&gt;
&lt;br /&gt;
[[File:Man2_highlighting_pattern6.png|none|frame|The Comment (C++/single line) Pattern]]&lt;br /&gt;
&lt;br /&gt;
As you can see the ?&amp;gt; within the comment does not end the &amp;lt;tt&amp;gt;php&amp;lt;/tt&amp;gt; pattern, because it lies within a subpattern of PHP Block: &lt;br /&gt;
&lt;br /&gt;
 // this is a comment ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The pattern Comment (C++/single line) does not have any child patterns, so the remaining code for the PHP subpatterns is: &lt;br /&gt;
&lt;br /&gt;
 ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is very obvious now, the lowest match will be the end pattern of the php pattern, so we&amp;#039;re back on the main level, and we have matched all of the code! &lt;br /&gt;
&lt;br /&gt;
[[File:Man2_syntax_highlighting_example.png|none|frame|Syntax Highlighting Example]]&lt;br /&gt;
&lt;br /&gt;
The config file for highlighting is a colon separated array with the following content:&lt;br /&gt;
&lt;br /&gt;
 mode:&lt;br /&gt;
 patternname:&lt;br /&gt;
 case_sensitive(0-on/1-off):&lt;br /&gt;
 start reg-ex:&lt;br /&gt;
 end reg-ex:&lt;br /&gt;
 start &amp;amp; end pattern(1), only start(2), subpattern(3):&lt;br /&gt;
 parent-match:&lt;br /&gt;
 foreground-color:&lt;br /&gt;
 background-color:&lt;br /&gt;
 don&amp;#039;t change weight(0), non-bold(1), bold(2):&lt;br /&gt;
 don&amp;#039;t change style(0), non-italic(1), italic(2):&lt;br /&gt;
&lt;br /&gt;
The same options are found in the syntax highlighting preferences.&lt;br /&gt;
&lt;br /&gt;
As an exercise you may want to add the highlighting patterns for the xsl stylesheet file type created previously. They will be based on the xml patterns with just small changes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Man2_note.png]] If you check the force bold weight check box, you should also check that the font you use has a bold variant in the Editor tab of the Preferences panel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Man2bottom&lt;br /&gt;
|prev=Man 2 ch08s11&lt;br /&gt;
|up=Man 2 ch08&lt;br /&gt;
|next=Man 2 ch09&lt;br /&gt;
|prevname= 11.&amp;amp;nbsp;Modifying the files filters&lt;br /&gt;
|nextname=Chapter&amp;amp;nbsp;IX.&amp;amp;nbsp;Shortcuts available within Bluefish&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Fal7i</name></author>
	</entry>
</feed>