b0VIM 6.4UgBcfeldm01PL5D-FM6WT11C:\www\wordpress\codeformatter\Text_Highlighter-0.6.6\README3210#"! UtpN@OnqVnadgNl'? F E D -      s ' K  l ( ' @   W xwned0 ~U|wU&Odgf - never-contained="yes": Marks region as not-contained. - contained="yes": Marks region as contained. such as m or U. Examples: \/\* or /$/m. delimiters are needed, is specifying regular expression modifiers, if you need to specify delimiter, use /. The only case when the of region. Required. Regular expression delimiters are optional, but - start="...", end="...": Regular expression matching start and end defaults to value of innerGroup attribute. - delimGroup="...": color group of start and end of region. Optional, - innerGroup="...": Default color group of region contents. Required. - name="...": Region name. Required. * : Region definition - innerGroup="...": color group name. Required. * : Default color group. - email="...": Author's email address. Optional. - name="...": Author's name. Required. multiple times, one per author.) : Information about a single author of the file. (May be used * : Information about the authors of the file.insensitive). Allowed subelements are:case, when given value yes, makes the language case sensitive (default is caseand must only contain letters, digits and underscores. Optional attributethe name of the language. Its value is used as a part of generated class name,The toplevel element is . Attribute lang is required and denotes--------ElementsHTML output is supported, so "color group" is more appropriate term.prior 0.5.0 color goups were refered as CSS classes, but since 0.5.0 not onlysame color group will be highlighted with same color. Note that in versionsIn this document, the term "color group" is used. Chunks of text assigned toregion can be specified.For any region, a list of blocks and regions that can appear inside thisdeclared as not-contained can only appear on top level.contained, it can appear both on top level and inside regions. Block or regioncan only appear inside regions. If a region or a block is not declared asBlocks and regions may be declared as contained. Contained blocks and regionshighlighted with their own color, and region contents with another.example PHP and C). Also, characters matching start and end of a region may bestatements enclosed in curly brackets (this is used in many languages, for(including same-named regions). An example of a region is a group ofdifference from a block is that a region can contain blocks and regionsexpressions: one for start of region, and another for the end. The maincolor. Keyword is an example of a block. A region is defined by two regularportion of text matching a regular expression and highlighted with a singlerules. There are two basic elements: block and region. A block is just aCreating a new syntax highlighter begins with describing the highlighting------Basics======================Highlighter XML sourcesimple, and I believe providing some examples of code is sufficient.This document does not contain a formal description of API - it is veryto create a new class.manually. Simply describe the rules in XML file and use Text_Highlighter_GeneratorTo create a highlighter for a language, there is no need to code a new classjust provide syntax highlighting rules. The rules sources are in XML format.particular language. Subclasses do not implement any new functioanality, theysimplify creation of subclasses implementing syntax highlighting forText_Highlighter is a class for syntax highlighting. The main idea is to============Introduction# $Id: README 26 2005-04-21 16:31:33Z andrey $adqV~hH5mO4 p U 9 8 7  e V U , L 6  f e  ~ M L # sr=<Drqp# vim: set autoindent tabstop=4 shiftwidth=4 softtabstop=4 tw=78: */ $html = $hl->highlight(file_get_contents('example.php')); $hl->setRenderer($renderer); $hl =& Text_Highlighter::factory('php'); $renderer =& new Text_Highlighter_Renderer_HTML($options); ); 'tabsize' => 8, 'numbers' => HL_NUMBERS_LI, $options = array( require_once 'Text/Highlighter/Renderer/Html.php'; require_once 'Text/Highlighter.php';And finally, do the highlighting and get the output:--------------Getting output $hl =& Text_Highlighter::factory('php', $options); ); 'tabsize' => 8, 'numbers' => HL_NUMBERS_LI, $options = array( require_once 'Text/Highlighter.php';following example works exactly as previous one:this case, you should pass options as second parameter to factory method. Therenderer. If no renderer is set, HTML renderer will be used by default. InNote that for BC reasons, it is possible to use highlighter without setting a $hl->setRenderer($renderer); $hl =& Text_Highlighter::factory('php'); $renderer =& new Text_Highlighter_Renderer_HTML($options); ); 'tabsize' => 8, 'numbers' => HL_NUMBERS_LI, $options = array( require_once 'Text/Highlighter/Renderer/Html.php'; require_once 'Text/Highlighter.php';Actual output is produced by a renderer.------------------Setting a renderer $hl =& Text_Highlighter::factory('php'); require_once 'Text/Highlighter.php';static method:To create a highlighter for a certain language, use Text_Highlighter::factory()-----------------------------Creating a highlighter object=================================How to use Text_Highlighter class 47 white background 46 cyan background 45 magenta background 44 blue background 43 yellow background 42 green background 41 red background 40 black background 37 white foreground 36 cyan foreground 35 magenta foreground 34 blue foreground 33 yellow foreground 32 green foreground 31 red foreground 30 black foreground 8 nondisplayed (invisible) 7 reverse video on 5 blink on 4 underline (mono only) 1 for bold on 0 for normal displayone of the following:where ESC is character with ASCII code 27 (033 octal, 0x1B hexadecimal). # is