home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / xampp-win32-1.6.7-installer.exe / php / PEAR / Text / Highlighter / XML.php < prev   
Encoding:
PHP Script  |  2008-07-02  |  5.9 KB  |  263 lines

  1. <?php
  2. /**
  3.  * Auto-generated class. XML syntax highlighting 
  4.  *
  5.  * PHP version 4 and 5
  6.  *
  7.  * LICENSE: This source file is subject to version 3.0 of the PHP license
  8.  * that is available through the world-wide-web at the following URI:
  9.  * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
  10.  * the PHP License and are unable to obtain it through the web, please
  11.  * send a note to license@php.net so we can mail you a copy immediately.
  12.  *
  13.  * @copyright  2004-2006 Andrey Demenev
  14.  * @license    http://www.php.net/license/3_0.txt  PHP License
  15.  * @link       http://pear.php.net/package/Text_Highlighter
  16.  * @category   Text
  17.  * @package    Text_Highlighter
  18.  * @version    generated from: : xml.xml,v 1.1 2007/06/03 02:35:28 ssttoo Exp 
  19.  * @author Andrey Demenev <demenev@gmail.com>
  20.  *
  21.  */
  22.  
  23. /**
  24.  * @ignore
  25.  */
  26.  
  27. require_once 'Text/Highlighter.php';
  28.  
  29. /**
  30.  * Auto-generated class. XML syntax highlighting
  31.  *
  32.  * @author Andrey Demenev <demenev@gmail.com>
  33.  * @category   Text
  34.  * @package    Text_Highlighter
  35.  * @copyright  2004-2006 Andrey Demenev
  36.  * @license    http://www.php.net/license/3_0.txt  PHP License
  37.  * @version    Release: 0.7.1
  38.  * @link       http://pear.php.net/package/Text_Highlighter
  39.  */
  40. class  Text_Highlighter_XML extends Text_Highlighter
  41. {
  42.     var $_language = 'xml';
  43.  
  44.     /**
  45.      * PHP4 Compatible Constructor
  46.      *
  47.      * @param array  $options
  48.      * @access public
  49.      */
  50.     function Text_Highlighter_XML($options=array())
  51.     {
  52.         $this->__construct($options);
  53.     }
  54.  
  55.  
  56.     /**
  57.      *  Constructor
  58.      *
  59.      * @param array  $options
  60.      * @access public
  61.      */
  62.     function __construct($options=array())
  63.     {
  64.  
  65.         $this->_options = $options;
  66.         $this->_regs = array (
  67.             -1 => '/((?i)\\<\\!\\[CDATA\\[)|((?i)\\<!--)|((?i)\\<[\\?\\/]?)|((?i)(&|%)[\\w\\-\\.]+;)/',
  68.             0 => '//',
  69.             1 => '//',
  70.             2 => '/((?i)(?<=[\\<\\/?])[\\w\\-\\:]+)|((?i)[\\w\\-\\:]+)|((?i)")/',
  71.             3 => '/((?i)(&|%)[\\w\\-\\.]+;)/',
  72.         );
  73.         $this->_counts = array (
  74.             -1 => 
  75.             array (
  76.                 0 => 0,
  77.                 1 => 0,
  78.                 2 => 0,
  79.                 3 => 1,
  80.             ),
  81.             0 => 
  82.             array (
  83.             ),
  84.             1 => 
  85.             array (
  86.             ),
  87.             2 => 
  88.             array (
  89.                 0 => 0,
  90.                 1 => 0,
  91.                 2 => 0,
  92.             ),
  93.             3 => 
  94.             array (
  95.                 0 => 1,
  96.             ),
  97.         );
  98.         $this->_delim = array (
  99.             -1 => 
  100.             array (
  101.                 0 => 'comment',
  102.                 1 => 'comment',
  103.                 2 => 'brackets',
  104.                 3 => '',
  105.             ),
  106.             0 => 
  107.             array (
  108.             ),
  109.             1 => 
  110.             array (
  111.             ),
  112.             2 => 
  113.             array (
  114.                 0 => '',
  115.                 1 => '',
  116.                 2 => 'quotes',
  117.             ),
  118.             3 => 
  119.             array (
  120.                 0 => '',
  121.             ),
  122.         );
  123.         $this->_inner = array (
  124.             -1 => 
  125.             array (
  126.                 0 => 'comment',
  127.                 1 => 'comment',
  128.                 2 => 'code',
  129.                 3 => 'special',
  130.             ),
  131.             0 => 
  132.             array (
  133.             ),
  134.             1 => 
  135.             array (
  136.             ),
  137.             2 => 
  138.             array (
  139.                 0 => 'reserved',
  140.                 1 => 'var',
  141.                 2 => 'string',
  142.             ),
  143.             3 => 
  144.             array (
  145.                 0 => 'special',
  146.             ),
  147.         );
  148.         $this->_end = array (
  149.             0 => '/(?i)\\]\\]\\>/',
  150.             1 => '/(?i)--\\>/',
  151.             2 => '/(?i)[\\/\\?]?\\>/',
  152.             3 => '/(?i)"/',
  153.         );
  154.         $this->_states = array (
  155.             -1 => 
  156.             array (
  157.                 0 => 0,
  158.                 1 => 1,
  159.                 2 => 2,
  160.                 3 => -1,
  161.             ),
  162.             0 => 
  163.             array (
  164.             ),
  165.             1 => 
  166.             array (
  167.             ),
  168.             2 => 
  169.             array (
  170.                 0 => -1,
  171.                 1 => -1,
  172.                 2 => 3,
  173.             ),
  174.             3 => 
  175.             array (
  176.                 0 => -1,
  177.             ),
  178.         );
  179.         $this->_keywords = array (
  180.             -1 => 
  181.             array (
  182.                 0 => -1,
  183.                 1 => -1,
  184.                 2 => -1,
  185.                 3 => 
  186.                 array (
  187.                 ),
  188.             ),
  189.             0 => 
  190.             array (
  191.             ),
  192.             1 => 
  193.             array (
  194.             ),
  195.             2 => 
  196.             array (
  197.                 0 => 
  198.                 array (
  199.                 ),
  200.                 1 => 
  201.                 array (
  202.                 ),
  203.                 2 => -1,
  204.             ),
  205.             3 => 
  206.             array (
  207.                 0 => 
  208.                 array (
  209.                 ),
  210.             ),
  211.         );
  212.         $this->_parts = array (
  213.             0 => 
  214.             array (
  215.             ),
  216.             1 => 
  217.             array (
  218.             ),
  219.             2 => 
  220.             array (
  221.                 0 => NULL,
  222.                 1 => NULL,
  223.                 2 => NULL,
  224.             ),
  225.             3 => 
  226.             array (
  227.                 0 => NULL,
  228.             ),
  229.         );
  230.         $this->_subst = array (
  231.             -1 => 
  232.             array (
  233.                 0 => false,
  234.                 1 => false,
  235.                 2 => false,
  236.                 3 => false,
  237.             ),
  238.             0 => 
  239.             array (
  240.             ),
  241.             1 => 
  242.             array (
  243.             ),
  244.             2 => 
  245.             array (
  246.                 0 => false,
  247.                 1 => false,
  248.                 2 => false,
  249.             ),
  250.             3 => 
  251.             array (
  252.                 0 => false,
  253.             ),
  254.         );
  255.         $this->_conditions = array (
  256.         );
  257.         $this->_kwmap = array (
  258.         );
  259.         $this->_defClass = 'code';
  260.         $this->_checkDefines();
  261.     }
  262.     
  263. }