I'm a developer

Syntax highlighting using Javascript

Posted by Spress add-ons on January 5th at 9:53am
Photo by Yuri Samoilov

Are you a developer? so you are lucky because Simple theme come with syntax highlighting powered by Highlight js with support for over 100 languages. See a example code in PHP:

use Yosymfony\Spress\Core\Spress;

class MyClass
    public function parseSite()
        $spress = new Spress();
        $spress['spress.config.site_dir'] = '/path-to-your-spress-site';


comments powered by Disqus