⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cpp.php

📁 F2blog v1.1 beta 12.27更新说明 1、后台编辑器增加了文本粘贴与从WORD粘贴
💻 PHP
📖 第 1 页 / 共 2 页
字号:
<?php/** * Auto-generated class. CPP syntax highlighting *  *  * Thanks to Aaron Kalin for initial * implementation of this highlighter *       * * 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: : cpp.xml 24 2005-04-16 09:10:28Z andrey  * @author Aaron Kalin * @author Andrey Demenev <demenev@gmail.com> * *//** * @ignore */require_once 'Text/Highlighter.php';/** * Auto-generated class. CPP syntax highlighting * * @author Aaron Kalin * @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_CPP extends Text_Highlighter{    var $_language = 'cpp';    /**     * PHP4 Compatible Constructor     *     * @param array  $options     * @access public     */    function Text_Highlighter_CPP($options=array())    {        $this->__construct($options);    }    /**     *  Constructor     *     * @param array  $options     * @access public     */    function __construct($options=array())    {        $this->_options = $options;        $this->_regs = array (            -1 => '/((?i)")|((?i)\\{)|((?i)\\()|((?i)\\[)|((?i)[a-z_]\\w*)|((?mi)^[ \\t]*#include)|((?mii)^[ \\t]*#[ \\t]*[a-z]+)|((?i)\\d*\\.?\\d+)|((?i)\\/\\*)|((?i)\\/\\/.+)/',            0 => '/((?i)\\\\)/',            1 => '/((?i)")|((?i)\\{)|((?i)\\()|((?i)\\[)|((?i)[a-z_]\\w*)|((?i)\\b0[xX][\\da-f]+)|((?i)\\b\\d\\d*|\\b0\\b)|((?i)\\b0[0-7]+)|((?i)\\b(\\d*\\.\\d+)|(\\d+\\.\\d*))|((?mi)^[ \\t]*#include)|((?mii)^[ \\t]*#[ \\t]*[a-z]+)|((?i)\\d*\\.?\\d+)|((?i)\\/\\*)|((?i)\\/\\/.+)/',            2 => '/((?i)")|((?i)\\{)|((?i)\\()|((?i)\\[)|((?i)[a-z_]\\w*)|((?i)\\b0[xX][\\da-f]+)|((?i)\\b\\d\\d*|\\b0\\b)|((?i)\\b0[0-7]+)|((?i)\\b(\\d*\\.\\d+)|(\\d+\\.\\d*))|((?mi)^[ \\t]*#include)|((?mii)^[ \\t]*#[ \\t]*[a-z]+)|((?i)\\d*\\.?\\d+)|((?i)\\/\\*)|((?i)\\/\\/.+)/',            3 => '/((?i)")|((?i)\\{)|((?i)\\()|((?i)\\[)|((?i)[a-z_]\\w*)|((?i)\\b0[xX][\\da-f]+)|((?i)\\b\\d\\d*|\\b0\\b)|((?i)\\b0[0-7]+)|((?i)\\b(\\d*\\.\\d+)|(\\d+\\.\\d*))|((?mi)^[ \\t]*#include)|((?mii)^[ \\t]*#[ \\t]*[a-z]+)|((?i)\\d*\\.?\\d+)|((?i)\\/\\*)|((?i)\\/\\/.+)/',            4 => '//',            5 => '/((?i)")|((?i)<)/',            6 => '/((?i)")|((?i)\\{)|((?i)\\()|((?i)[a-z_]\\w*)|((?i)\\b0[xX][\\da-f]+)|((?i)\\b\\d\\d*|\\b0\\b)|((?i)\\b0[0-7]+)|((?i)\\b(\\d*\\.\\d+)|(\\d+\\.\\d*))|((?i)\\/\\*)|((?i)\\/\\/.+)/',            7 => '/((?i)\\$\\w+\\s*:.+\\$)/',            8 => '/((?i)\\$\\w+\\s*:.+\\$)/',        );        $this->_counts = array (            -1 =>             array (                0 => 0,                1 => 0,                2 => 0,                3 => 0,                4 => 0,                5 => 0,                6 => 0,                7 => 0,                8 => 0,                9 => 0,            ),            0 =>             array (                0 => 0,            ),            1 =>             array (                0 => 0,                1 => 0,                2 => 0,                3 => 0,                4 => 0,                5 => 0,                6 => 0,                7 => 0,                8 => 2,                9 => 0,                10 => 0,                11 => 0,                12 => 0,                13 => 0,            ),            2 =>             array (                0 => 0,                1 => 0,                2 => 0,                3 => 0,                4 => 0,                5 => 0,                6 => 0,                7 => 0,                8 => 2,                9 => 0,                10 => 0,                11 => 0,                12 => 0,                13 => 0,            ),            3 =>             array (                0 => 0,                1 => 0,                2 => 0,                3 => 0,                4 => 0,                5 => 0,                6 => 0,                7 => 0,                8 => 2,                9 => 0,                10 => 0,                11 => 0,                12 => 0,                13 => 0,            ),            4 =>             array (            ),            5 =>             array (                0 => 0,                1 => 0,            ),            6 =>             array (                0 => 0,                1 => 0,                2 => 0,                3 => 0,                4 => 0,                5 => 0,                6 => 0,                7 => 2,                8 => 0,                9 => 0,            ),            7 =>             array (                0 => 0,            ),            8 =>             array (                0 => 0,            ),        );        $this->_delim = array (            -1 =>             array (                0 => 'quotes',                1 => 'brackets',                2 => 'brackets',                3 => 'brackets',                4 => '',                5 => 'prepro',                6 => 'prepro',                7 => '',                8 => 'mlcomment',                9 => 'comment',            ),            0 =>             array (                0 => '',            ),            1 =>             array (                0 => 'quotes',                1 => 'brackets',                2 => 'brackets',                3 => 'brackets',                4 => '',                5 => '',                6 => '',                7 => '',                8 => '',                9 => 'prepro',                10 => 'prepro',                11 => '',                12 => 'mlcomment',                13 => 'comment',            ),            2 =>             array (                0 => 'quotes',                1 => 'brackets',                2 => 'brackets',                3 => 'brackets',                4 => '',                5 => '',                6 => '',                7 => '',                8 => '',                9 => 'prepro',                10 => 'prepro',                11 => '',                12 => 'mlcomment',                13 => 'comment',            ),            3 =>             array (                0 => 'quotes',                1 => 'brackets',                2 => 'brackets',                3 => 'brackets',                4 => '',                5 => '',                6 => '',                7 => '',                8 => '',                9 => 'prepro',                10 => 'prepro',                11 => '',                12 => 'mlcomment',                13 => 'comment',            ),            4 =>             array (            ),            5 =>             array (                0 => 'quotes',                1 => 'quotes',            ),            6 =>             array (                0 => 'quotes',                1 => 'brackets',                2 => 'brackets',                3 => '',                4 => '',                5 => '',                6 => '',                7 => '',                8 => 'mlcomment',                9 => 'comment',            ),            7 =>             array (                0 => '',            ),            8 =>             array (                0 => '',            ),        );        $this->_inner = array (            -1 =>             array (                0 => 'string',                1 => 'code',                2 => 'code',                3 => 'code',                4 => 'identifier',                5 => 'prepro',                6 => 'code',                7 => 'number',                8 => 'mlcomment',                9 => 'comment',            ),            0 =>             array (                0 => 'special',            ),            1 =>             array (                0 => 'string',                1 => 'code',                2 => 'code',                3 => 'code',                4 => 'identifier',                5 => 'number',                6 => 'number',                7 => 'number',                8 => 'number',                9 => 'prepro',                10 => 'code',                11 => 'number',                12 => 'mlcomment',                13 => 'comment',            ),            2 =>             array (                0 => 'string',                1 => 'code',                2 => 'code',                3 => 'code',                4 => 'identifier',                5 => 'number',                6 => 'number',                7 => 'number',                8 => 'number',                9 => 'prepro',                10 => 'code',                11 => 'number',                12 => 'mlcomment',                13 => 'comment',            ),            3 =>             array (                0 => 'string',                1 => 'code',                2 => 'code',                3 => 'code',                4 => 'identifier',                5 => 'number',                6 => 'number',                7 => 'number',                8 => 'number',                9 => 'prepro',                10 => 'code',                11 => 'number',                12 => 'mlcomment',                13 => 'comment',            ),            4 =>             array (            ),            5 =>             array (                0 => 'string',                1 => 'string',            ),            6 =>             array (                0 => 'string',                1 => 'code',                2 => 'code',                3 => 'identifier',                4 => 'number',                5 => 'number',                6 => 'number',                7 => 'number',                8 => 'mlcomment',                9 => 'comment',            ),            7 =>             array (                0 => 'inlinedoc',            ),            8 =>             array (                0 => 'inlinedoc',            ),        );        $this->_end = array (            0 => '/(?i)"/',            1 => '/(?i)\\}/',            2 => '/(?i)\\)/',            3 => '/(?i)\\]/',            4 => '/(?i)>/',            5 => '/(?mi)(?<!\\\\)$/',            6 => '/(?mi)(?<!\\\\)$/',            7 => '/(?i)\\*\\//',            8 => '/(?mi)$/',        );        $this->_states = array (            -1 =>             array (                0 => 0,                1 => 1,                2 => 2,                3 => 3,                4 => -1,                5 => 5,                6 => 6,                7 => -1,                8 => 7,                9 => 8,            ),            0 =>             array (                0 => -1,            ),            1 =>             array (                0 => 0,                1 => 1,                2 => 2,                3 => 3,                4 => -1,                5 => -1,                6 => -1,                7 => -1,                8 => -1,                9 => 5,                10 => 6,                11 => -1,                12 => 7,                13 => 8,            ),            2 =>             array (

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -