I'm a developer

Syntax highlighting using Javascript

Posted by Spress add-ons on October 8th at 7:14am
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';
        $spress->parse();
    }
}