heading.php

来自「Serendipity是一个php+mysql的blog程序」· PHP 代码 · 共 29 行

PHP
29
字号
<?phpclass Text_Wiki_Render_Xhtml_Heading extends Text_Wiki_Render {        var $conf = array(        'css_h1' => null,        'css_h2' => null,        'css_h3' => null,        'css_h4' => null,        'css_h5' => null,        'css_h6' => null    );        function token($options)    {        // get nice variable names (id, type, level)        extract($options);                if ($type == 'start') {            $css = $this->formatConf(' class="%s"', "css_h$level");            return "<h$level$css id=\"$id\">";        }                if ($type == 'end') {            return "</h$level>\n";        }    }}?>

⌨️ 快捷键说明

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