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 / HTML.php < prev    next >
Encoding:
PHP Script  |  2008-07-02  |  5.3 KB  |  234 lines

  1. <?php
  2. /**
  3.  * Auto-generated class. HTML 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: : html.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. HTML 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_HTML extends Text_Highlighter
  41. {
  42.     var $_language = 'html';
  43.  
  44.     /**
  45.      * PHP4 Compatible Constructor
  46.      *
  47.      * @param array  $options
  48.      * @access public
  49.      */
  50.     function Text_Highlighter_HTML($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)\\<!--)|((?i)\\<[\\?\\/]?)|((?i)(&)[\\w\\-\\.]+;)/',
  68.             0 => '//',
  69.             1 => '/((?i)(?<=[\\<\\/?])[\\w\\-\\:]+)|((?i)[\\w\\-\\:]+)|((?i)")/',
  70.             2 => '/((?i)(&)[\\w\\-\\.]+;)/',
  71.         );
  72.         $this->_counts = array (
  73.             -1 => 
  74.             array (
  75.                 0 => 0,
  76.                 1 => 0,
  77.                 2 => 1,
  78.             ),
  79.             0 => 
  80.             array (
  81.             ),
  82.             1 => 
  83.             array (
  84.                 0 => 0,
  85.                 1 => 0,
  86.                 2 => 0,
  87.             ),
  88.             2 => 
  89.             array (
  90.                 0 => 1,
  91.             ),
  92.         );
  93.         $this->_delim = array (
  94.             -1 => 
  95.             array (
  96.                 0 => 'comment',
  97.                 1 => 'brackets',
  98.                 2 => '',
  99.             ),
  100.             0 => 
  101.             array (
  102.             ),
  103.             1 => 
  104.             array (
  105.                 0 => '',
  106.                 1 => '',
  107.                 2 => 'quotes',
  108.             ),
  109.             2 => 
  110.             array (
  111.                 0 => '',
  112.             ),
  113.         );
  114.         $this->_inner = array (
  115.             -1 => 
  116.             array (
  117.                 0 => 'comment',
  118.                 1 => 'code',
  119.                 2 => 'special',
  120.             ),
  121.             0 => 
  122.             array (
  123.             ),
  124.             1 => 
  125.             array (
  126.                 0 => 'reserved',
  127.                 1 => 'var',
  128.                 2 => 'string',
  129.             ),
  130.             2 => 
  131.             array (
  132.                 0 => 'special',
  133.             ),
  134.         );
  135.         $this->_end = array (
  136.             0 => '/(?i)--\\>/',
  137.             1 => '/(?i)[\\/\\?]?\\>/',
  138.             2 => '/(?i)"/',
  139.         );
  140.         $this->_states = array (
  141.             -1 => 
  142.             array (
  143.                 0 => 0,
  144.                 1 => 1,
  145.                 2 => -1,
  146.             ),
  147.             0 => 
  148.             array (
  149.             ),
  150.             1 => 
  151.             array (
  152.                 0 => -1,
  153.                 1 => -1,
  154.                 2 => 2,
  155.             ),
  156.             2 => 
  157.             array (
  158.                 0 => -1,
  159.             ),
  160.         );
  161.         $this->_keywords = array (
  162.             -1 => 
  163.             array (
  164.                 0 => -1,
  165.                 1 => -1,
  166.                 2 => 
  167.                 array (
  168.                 ),
  169.             ),
  170.             0 => 
  171.             array (
  172.             ),
  173.             1 => 
  174.             array (
  175.                 0 => 
  176.                 array (
  177.                 ),
  178.                 1 => 
  179.                 array (
  180.                 ),
  181.                 2 => -1,
  182.             ),
  183.             2 => 
  184.             array (
  185.                 0 => 
  186.                 array (
  187.                 ),
  188.             ),
  189.         );
  190.         $this->_parts = array (
  191.             0 => 
  192.             array (
  193.             ),
  194.             1 => 
  195.             array (
  196.                 0 => NULL,
  197.                 1 => NULL,
  198.                 2 => NULL,
  199.             ),
  200.             2 => 
  201.             array (
  202.                 0 => NULL,
  203.             ),
  204.         );
  205.         $this->_subst = array (
  206.             -1 => 
  207.             array (
  208.                 0 => false,
  209.                 1 => false,
  210.                 2 => false,
  211.             ),
  212.             0 => 
  213.             array (
  214.             ),
  215.             1 => 
  216.             array (
  217.                 0 => false,
  218.                 1 => false,
  219.                 2 => false,
  220.             ),
  221.             2 => 
  222.             array (
  223.                 0 => false,
  224.             ),
  225.         );
  226.         $this->_conditions = array (
  227.         );
  228.         $this->_kwmap = array (
  229.         );
  230.         $this->_defClass = 'code';
  231.         $this->_checkDefines();
  232.     }
  233.     
  234. }