Просмотр поста

.
jimy
Добавлено: 04.06.2017 / 07:03
yeah I know that that, but I'm using bbcode jcms7
I want to know hw to edit geshi->
if (null === $this->geshi) {
            $this->geshi = new \GeSHi;
            $this->geshi->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS, 2);
            $this->geshi->set_line_style('background: rgba(252, 252, 252, 0.7)', 'background: rgba(255, 255, 255, 0.6);', false);
            $this->geshi->set_code_style('white-space: pre-wrap');
        }

        $this->geshi->set_language($parser);
        $php = strtr($code[2], ['<br />' => '']);
        $php = html_entity_decode(trim($php), ENT_QUOTES, 'UTF-8');
        $this->geshi->set_source($php);


Добавлено: 04.06.2017 / 07:24
found this but complicated http://qbnz.com/highlighter/ge ... .html