cvs: peardoc /en/package/text/text-highlighter intro.xml

From: Date: Wed, 06 Jun 2007 19:11:10 +0000
Subject: cvs: peardoc /en/package/text/text-highlighter intro.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-9760@lists.php.net to get a copy of this message
ssttoo Wed Jun 6 19:11:10 2007 UTC Modified files: /peardoc/en/package/text/text-highlighter intro.xml Log: Updated the list of supported languages, added a list of renderers http://cvs.php.net/viewvc.cgi/peardoc/en/package/text/text-highlighter/intro.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/en/package/text/text-highlighter/intro.xml diff -u peardoc/en/package/text/text-highlighter/intro.xml:1.3 peardoc/en/package/text/text-highlighter/intro.xml:1.4 --- peardoc/en/package/text/text-highlighter/intro.xml:1.3 Sun Nov 26 23:24:33 2006 +++ peardoc/en/package/text/text-highlighter/intro.xml Wed Jun 6 19:11:09 2007 @@ -1,5 +1,5 @@ <?xml version='1.0' encoding='ISO-8859-1' ?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <sect2 id="package.text.text-highlighter.intro"> <title>Introduction</title> @@ -14,6 +14,9 @@ <itemizedlist> <listitem> + <simpara>ABAP</simpara> + </listitem> + <listitem> <simpara>C++</simpara> </listitem> <listitem> @@ -56,6 +59,34 @@ <simpara><acronym>XML</acronym></simpara> </listitem> </itemizedlist> + + <para> + There are diferent options for getting the results of the highlighting, + through the use of renderers. The list of renderers is as follows. + </para> + + <itemizedlist> + <listitem> + Array + </listitem> + <listitem> + Console + </listitem> + <listitem> + HTML - using span-tags containing a CSS class name, this is the default renderer + </listitem> + <listitem> + HTMLTags - using simple set of tags, only B, I and U, useful for devices + that support only a subset of HTML (example is an iPod) + </listitem> + <listitem> + JSON + </listitem> + <listitem> + XML + </listitem> + </itemizedlist> + </sect2> <sect2 id="package.text.text-highlighter.usage"> @@ -86,8 +117,8 @@ <para> This code generates a highlighted version of the SQL SELECT-query that is passed to <methodname>Text_Highlighter::highlight</methodname> - in HTML. It is possible to customize the output to e.g. instead - generate output suitable for usage on a console. This is + in HTML. It is possible to customize the output to e.g. instead + generate output suitable for usage on a console. This is described in the section <link linkend="package.text.text-highlighter.oc"> Output Customization</link>. </para> @@ -96,10 +127,10 @@ <para> In order to produce syntax highlighting for other formats, one must replace the argument value <literal>SQL</literal> of <methodname>Text_Highlighter::factory</methodname> - with one of <literal>CPP</literal>, <literal>CSS</literal>, <literal>DIFF</literal>, + with one of <literal>ABAP</literal>, <literal>CPP</literal>, <literal>CSS</literal>, <literal>DIFF</literal>, <literal>DTD</literal>, <literal>HTML</literal>, <literal>JAVA</literal>, - <literal>JAVASCRIPT</literal>, <literal>MYSQL</literal>, - <literal>PERL</literal>, <literal>PHP</literal>, + <literal>JAVASCRIPT</literal>, <literal>MYSQL</literal>, + <literal>PERL</literal>, <literal>PHP</literal>, <literal>PYTHON</literal>, <literal>RUBY</literal>, <literal>SQL</literal>, or <literal>XML</literal>. </para> @@ -115,9 +146,9 @@ <para> It is possible to instead generate output that is suitable for - being displayed on color-capable terminals such as + being displayed on color-capable terminals such as <command>xterm</command> or through <command>less(1)</command> - by telling <classname>Text_Highlighter</classname> to use + by telling <classname>Text_Highlighter</classname> to use another renderer: </para>

« previous php.pear.doc (#9760) next »