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

/**
 * @ignore
 */

require_once 'Text/Highlighter.php';

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


    /**
     *  Constructor
     *
     * @param array  $options
     * @access public
     */
    function __construct($options=array())
    {
        $this->_syntax = array (
            'regions' => 
            array (
                'comment' => 
                array (
                    'name' => 'comment',
                    'case' => true,
                    'innerColor' => 'comment',
                    'delimColor' => 'comment',
                    'start' => '/\\<!--/',
                    'end' => '/--\\>/',
                    'remember' => false,
                ),
                'redecl' => 
                array (
                    'name' => 'redecl',
                    'case' => true,
                    'innerColor' => 'code',
                    'delimColor' => 'brackets',
                    'start' => '/\\<\\!\\[/',
                    'end' => '/\\]\\]\\>/',
                    'remember' => false,
                    'lookfor' => 
                    array (
                        'regions' => 
                        array (
                            0 => 'comment',
                            1 => 'tag',
                        ),
                        'blocks' => 
                        array (
                            0 => 'pcdata',
                            1 => 'entity',
                            2 => 'identifier',
                        ),
                    ),
                ),
                'tag' => 
                array (
                    'name' => 'tag',
                    'case' => true,
                    'innerColor' => 'code',
                    'delimColor' => 'brackets',
                    'start' => '/\\</',
                    'end' => '/\\>/',
                    'remember' => false,
                    'lookfor' => 
                    array (
                        'regions' => 
                        array (
                            0 => 'comment',
                            1 => 'brackets',
                            2 => 'strsingle',
                            3 => 'strdouble',
                        ),
                        'blocks' => 
                        array (
                            0 => 'tagname',
                            1 => 'reserved',
                            2 => 'pcdata',
                            3 => 'entity',
                            4 => 'identifier',
                        ),
                    ),
                ),
                'brackets' => 
                array (
                    'name' => 'brackets',
                    'case' => true,
                    'innerColor' => 'code',
                    'delimColor' => 'brackets',
                    'start' => '/\\(/',
                    'end' => '/\\)/',
                    'remember' => false,
                    'lookfor' => 
                    array (
                        'blocks' => 
                        array (
                            0 => 'entity',
                            1 => 'identifier',
                        ),
                    ),
                ),
                'strsingle' => 
                array (
                    'name' => 'strsingle',
                    'case' => true,
                    'innerColor' => 'string',
                    'delimColor' => 'quotes',
                    'start' => '/\'/',
                    'end' => '/\'/',
                    'remember' => false,
                    'lookfor' => 
                    array (
                        'blocks' => 
                        array (
                            0 => 'entity',
                        ),
                    ),
                ),
                'strdouble' => 
                array (
                    'name' => 'strdouble',
                    'case' => true,
                    'innerColor' => 'string',
                    'delimColor' => 'quotes',
                    'start' => '/"/',
                    'end' => '/"/',
                    'remember' => false,
                    'lookfor' => 
                    array (
                        'blocks' => 
                        array (
                            0 => 'entity',
                        ),
                    ),
                ),
            ),
            'keywords' => 
            array (
            ),
            'blocks' => 
            array (
                'tagname' => 
                array (
                    'name' => 'tagname',
                    'case' => true,
                    'innerColor' => 'var',
                    'match' => '/^!(ENTITY|ATTLIST|ELEMENT|NOTATION)\\b/',
                    'multiline' => false,
                ),
                'reserved' => 
                array (
                    'name' => 'reserved',
                    'case' => true,
                    'innerColor' => 'reserved',
                    'match' => '/\\s(#(IMPLIED|REQUIRED|FIXED))|CDATA|ENTITY|NOTATION|NMTOKENS?|PUBLIC|SYSTEM\\b/',
                    'multiline' => false,
                ),
                'pcdata' => 
                array (
                    'name' => 'pcdata',
                    'case' => true,
                    'innerColor' => 'reserved',
                    'match' => '/#PCDATA\\b/',
                    'multiline' => false,
                ),
                'entity' => 
                array (
                    'name' => 'entity',
                    'case' => true,
                    'innerColor' => 'special',
                    'match' => '/(\\&|\\%)[\\w\\-\\.]+;/',
                    'multiline' => false,
                ),
                'identifier' => 
                array (
                    'name' => 'identifier',
                    'case' => false,
                    'innerColor' => 'identifier',
                    'match' => '/[a-z][a-z\\d\\-\\,:]+/i',
                    'multiline' => false,
                ),
            ),
            'toplevel' => 
            array (
                'blocks' => 
                array (
                    0 => 'entity',
                ),
                'regions' => 
                array (
                    0 => 'comment',
                    1 => 'redecl',
                    2 => 'tag',
                ),
            ),
            'case' => true,
            'defcolor' => 'code',
        );

        parent::_init($options);
    }
}

?>
Return current item: Content*Builder