Location: PHPKode > projects > Content*Builder > cb_pear/Text/Highlighter/XML.php
<?php
/**
 * Auto-generated class. XML syntax highlighting
 * @package Text_Highlighter
 *
 * @author Andrey Demenev <hide@address.com>
 */

/**
 * @ignore
 */

require_once 'Text/Highlighter.php';

/**
 * Auto-generated class. XML syntax highlighting
 * @package Text_Highlighter
 *
 * @author Andrey Demenev <hide@address.com>
 */
class  Text_Highlighter_XML extends Text_Highlighter
{    /**
     * PHP4 Compatible Constructor
     *
     * @param array  $options
     * @access public
     */
    function Text_Highlighter_XML($options=array())
    {
        $this->__construct($options);
    }


    /**
     *  Constructor
     *
     * @param array  $options
     * @access public
     */
    function __construct($options=array())
    {
        $this->_syntax = array (
            'regions' => 
            array (
                'cdata' => 
                array (
                    'name' => 'cdata',
                    'case' => false,
                    'innerColor' => 'comment',
                    'delimColor' => 'comment',
                    'start' => '/\\<\\!\\[CDATA\\[/i',
                    'end' => '/\\]\\]\\>/i',
                    'remember' => false,
                ),
                'comment' => 
                array (
                    'name' => 'comment',
                    'case' => false,
                    'innerColor' => 'comment',
                    'delimColor' => 'comment',
                    'start' => '/\\<!--/i',
                    'end' => '/--\\>/i',
                    'remember' => false,
                ),
                'tag' => 
                array (
                    'name' => 'tag',
                    'case' => false,
                    'innerColor' => 'code',
                    'delimColor' => 'brackets',
                    'start' => '/\\<[\\?\\/]?/i',
                    'end' => '/[\\/\\?]?\\>/i',
                    'remember' => false,
                    'lookfor' => 
                    array (
                        'regions' => 
                        array (
                            0 => 'param',
                        ),
                        'blocks' => 
                        array (
                            0 => 'tagname',
                            1 => 'paramname',
                        ),
                    ),
                ),
                'param' => 
                array (
                    'name' => 'param',
                    'case' => false,
                    'innerColor' => 'string',
                    'delimColor' => 'quotes',
                    'start' => '/"/i',
                    'end' => '/"/i',
                    'remember' => false,
                    'lookfor' => 
                    array (
                        'blocks' => 
                        array (
                            0 => 'entity',
                        ),
                    ),
                ),
            ),
            'keywords' => 
            array (
            ),
            'blocks' => 
            array (
                'tagname' => 
                array (
                    'name' => 'tagname',
                    'case' => false,
                    'innerColor' => 'reserved',
                    'match' => '/^[\\w\\-\\:]+/i',
                    'multiline' => false,
                ),
                'paramname' => 
                array (
                    'name' => 'paramname',
                    'case' => false,
                    'innerColor' => 'var',
                    'match' => '/[\\w\\-\\:]+/i',
                    'multiline' => false,
                ),
                'entity' => 
                array (
                    'name' => 'entity',
                    'case' => false,
                    'innerColor' => 'special',
                    'match' => '/(&|%)[\\w\\-\\.]+;/i',
                    'multiline' => false,
                ),
            ),
            'toplevel' => 
            array (
                'blocks' => 
                array (
                    0 => 'entity',
                ),
                'regions' => 
                array (
                    0 => 'cdata',
                    1 => 'comment',
                    2 => 'tag',
                ),
            ),
            'case' => false,
            'defcolor' => 'code',
        );

        parent::_init($options);
    }
}

?>
Return current item: Content*Builder