📄 php.php
字号:
<?php/** * Auto-generated class. PHP syntax highlighting * * PHP version 4 and 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/license/3_0.txt. If you did not receive a copy of * the PHP License and are unable to obtain it through the web, please * send a note to license@php.net so we can mail you a copy immediately. * * @copyright 2004 Andrey Demenev * @license http://www.php.net/license/3_0.txt PHP License * @link http://pear.php.net/package/Text_Highlighter * @category Text * @package Text_Highlighter * @version generated from: : php.xml 21 2005-02-04 07:08:05Z andrey * @author Andrey Demenev <demenev@gmail.com> * *//** * @ignore */require_once 'Text/Highlighter.php';/** * Auto-generated class. PHP syntax highlighting * * @author Andrey Demenev <demenev@gmail.com> * @category Text * @package Text_Highlighter * @copyright 2004 Andrey Demenev * @license http://www.php.net/license/3_0.txt PHP License * @version Release: @package_version@ * @link http://pear.php.net/package/Text_Highlighter */class Text_Highlighter_PHP extends Text_Highlighter{ var $_language = 'php'; /** * PHP4 Compatible Constructor * * @param array $options * @access public */ function Text_Highlighter_PHP($options=array()) { $this->__construct($options); } /** * Constructor * * @param array $options * @access public */ function __construct($options=array()) { $this->_options = $options; $this->_regs = array ( -1 => '/((?i)\\<\\?(php|=)?)/', 0 => '/((?i)\\{)|((?i)\\()|((?i)\\[)|((?i)\\/\\*)|((?i)")|((?i)`)|((?mi)\\<\\<\\<[\\x20\\x09]*(\\w+)$)|((?i)\')|((?i)(#|\\/\\/))|((?i)[a-z_]\\w*)|((?i)\\((array|int|integer|string|bool|boolean|object|float|double)\\))|((?i)0[xX][\\da-f]+)|((?i)\\$[a-z_]\\w*)|((?i)\\d\\d*|\\b0\\b)|((?i)0[0-7]+)|((?i)(\\d*\\.\\d+)|(\\d+\\.\\d*))|((?i)((\\d+|((\\d*\\.\\d+)|(\\d+\\.\\d*)))[eE][+-]?\\d+))/', 1 => '/((?i)\\{)|((?i)\\()|((?i)\\[)|((?i)\\/\\*)|((?i)")|((?i)`)|((?mi)\\<\\<\\<[\\x20\\x09]*(\\w+)$)|((?i)\')|((?i)(#|\\/\\/))|((?i)[a-z_]\\w*)|((?i)\\((array|int|integer|string|bool|boolean|object|float|double)\\))|((?i)\\?\\>)|((?i)0[xX][\\da-f]+)|((?i)\\$[a-z_]\\w*)|((?i)\\d\\d*|\\b0\\b)|((?i)0[0-7]+)|((?i)(\\d*\\.\\d+)|(\\d+\\.\\d*))|((?i)((\\d+|((\\d*\\.\\d+)|(\\d+\\.\\d*)))[eE][+-]?\\d+))/', 2 => '/((?i)\\{)|((?i)\\()|((?i)\\[)|((?i)\\/\\*)|((?i)")|((?i)`)|((?mi)\\<\\<\\<[\\x20\\x09]*(\\w+)$)|((?i)\')|((?i)(#|\\/\\/))|((?i)[a-z_]\\w*)|((?i)\\((array|int|integer|string|bool|boolean|object|float|double)\\))|((?i)0[xX][\\da-f]+)|((?i)\\$[a-z_]\\w*)|((?i)\\d\\d*|\\b0\\b)|((?i)0[0-7]+)|((?i)(\\d*\\.\\d+)|(\\d+\\.\\d*))|((?i)((\\d+|((\\d*\\.\\d+)|(\\d+\\.\\d*)))[eE][+-]?\\d+))/', 3 => '/((?i)\\{)|((?i)\\()|((?i)\\[)|((?i)\\/\\*)|((?i)")|((?i)`)|((?mi)\\<\\<\\<[\\x20\\x09]*(\\w+)$)|((?i)\')|((?i)(#|\\/\\/))|((?i)[a-z_]\\w*)|((?i)\\((array|int|integer|string|bool|boolean|object|float|double)\\))|((?i)0[xX][\\da-f]+)|((?i)\\$[a-z_]\\w*)|((?i)\\d\\d*|\\b0\\b)|((?i)0[0-7]+)|((?i)(\\d*\\.\\d+)|(\\d+\\.\\d*))|((?i)((\\d+|((\\d*\\.\\d+)|(\\d+\\.\\d*)))[eE][+-]?\\d+))/', 4 => '/((?i)\\s@\\w+\\s)|((?i)((https?|ftp):\\/\\/[\\w\\?\\.\\-\\&=\\/%+]+)|(^|[\\s,!?])www\\.\\w+\\.\\w+[\\w\\?\\.\\&=\\/%+]*)|((?i)\\w+[\\.\\w\\-]+@(\\w+[\\.\\w\\-])+)|((?i)\\bnote:)|((?i)\\$\\w+\\s*:.*\\$)/', 5 => '/((?i)\\\\[\\\\"\'`tnr\\$\\{])|((?i)\\{\\$[a-z_].*\\})|((?i)\\$[a-z_]\\w*)/', 6 => '/((?i)\\\\\\\\|\\\\"|\\\\\'|\\\\`)|((?i)\\{\\$[a-z_].*\\})|((?i)\\$[a-z_]\\w*)/', 7 => '/((?i)\\\\[\\\\"\'`tnr\\$\\{])|((?i)\\{\\$[a-z_].*\\})|((?i)\\$[a-z_]\\w*)/', 8 => '/((?i)\\\\\\\\|\\\\"|\\\\\'|\\\\`)/', 9 => '/((?i)\\s@\\w+\\s)|((?i)((https?|ftp):\\/\\/[\\w\\?\\.\\-\\&=\\/%+]+)|(^|[\\s,!?])www\\.\\w+\\.\\w+[\\w\\?\\.\\&=\\/%+]*)|((?i)\\w+[\\.\\w\\-]+@(\\w+[\\.\\w\\-])+)|((?i)\\bnote:)|((?i)\\$\\w+\\s*:.*\\$)/', 10 => '//', ); $this->_counts = array ( -1 => array ( 0 => 1, ), 0 => array ( 0 => 0, 1 => 0, 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 1, 7 => 0, 8 => 1, 9 => 0, 10 => 1, 11 => 0, 12 => 0, 13 => 0, 14 => 0, 15 => 2, 16 => 5, ), 1 => array ( 0 => 0, 1 => 0, 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 1, 7 => 0, 8 => 1, 9 => 0, 10 => 1, 11 => 0, 12 => 0, 13 => 0, 14 => 0, 15 => 0, 16 => 2, 17 => 5, ), 2 => array ( 0 => 0, 1 => 0, 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 1, 7 => 0, 8 => 1, 9 => 0, 10 => 1, 11 => 0, 12 => 0, 13 => 0, 14 => 0, 15 => 2, 16 => 5, ), 3 => array ( 0 => 0, 1 => 0, 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 1, 7 => 0, 8 => 1, 9 => 0, 10 => 1, 11 => 0, 12 => 0, 13 => 0, 14 => 0, 15 => 2, 16 => 5, ), 4 => array ( 0 => 0, 1 => 3, 2 => 1, 3 => 0, 4 => 0, ), 5 => array ( 0 => 0, 1 => 0, 2 => 0, ), 6 => array ( 0 => 0, 1 => 0, 2 => 0, ), 7 => array ( 0 => 0, 1 => 0, 2 => 0, ), 8 => array ( 0 => 0, ), 9 => array ( 0 => 0, 1 => 3, 2 => 1, 3 => 0, 4 => 0, ), 10 => array ( ), ); $this->_delim = array ( -1 => array ( 0 => 'inlinetags', ), 0 => array ( 0 => 'brackets', 1 => 'brackets', 2 => 'brackets', 3 => 'comment', 4 => 'quotes', 5 => 'quotes', 6 => 'quotes', 7 => 'quotes', 8 => 'comment', 9 => '', 10 => '', 11 => '', 12 => '', 13 => '', 14 => '', 15 => '', 16 => '', ), 1 => array ( 0 => 'brackets', 1 => 'brackets', 2 => 'brackets', 3 => 'comment', 4 => 'quotes', 5 => 'quotes', 6 => 'quotes', 7 => 'quotes', 8 => 'comment', 9 => '', 10 => '', 11 => 'inlinetags', 12 => '', 13 => '', 14 => '', 15 => '', 16 => '', 17 => '', ), 2 => array ( 0 => 'brackets', 1 => 'brackets', 2 => 'brackets', 3 => 'comment', 4 => 'quotes', 5 => 'quotes', 6 => 'quotes', 7 => 'quotes', 8 => 'comment', 9 => '', 10 => '', 11 => '', 12 => '', 13 => '', 14 => '', 15 => '', 16 => '', ), 3 => array ( 0 => 'brackets', 1 => 'brackets', 2 => 'brackets', 3 => 'comment', 4 => 'quotes', 5 => 'quotes', 6 => 'quotes', 7 => 'quotes', 8 => 'comment', 9 => '', 10 => '', 11 => '', 12 => '', 13 => '', 14 => '', 15 => '', 16 => '', ), 4 => array ( 0 => '', 1 => '', 2 => '', 3 => '', 4 => '', ), 5 => array ( 0 => '', 1 => '', 2 => '', ), 6 => array ( 0 => '', 1 => '', 2 => '', ), 7 => array ( 0 => '', 1 => '', 2 => '', ), 8 => array ( 0 => '', ), 9 => array ( 0 => '', 1 => '', 2 => '', 3 => '', 4 => '', ), 10 => array ( ), ); $this->_inner = array ( -1 => array ( 0 => 'code', ), 0 => array ( 0 => 'code', 1 => 'code', 2 => 'code', 3 => 'comment', 4 => 'string', 5 => 'string', 6 => 'string', 7 => 'string', 8 => 'comment', 9 => 'identifier', 10 => 'reserved', 11 => 'number', 12 => 'var', 13 => 'number', 14 => 'number', 15 => 'number', 16 => 'number', ), 1 => array ( 0 => 'code', 1 => 'code', 2 => 'code', 3 => 'comment', 4 => 'string', 5 => 'string', 6 => 'string',
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -