Use syntax highlighting in package


I’m developing a package that generates HTML which is then displayed in a scroll view. I’m overwriting the whole HTML for that view just like the Markdown Preview package does.

Is there any way I can use Atom’s internal syntax highlighting in that context? I can certainly use a 3rd party HTML syntax highlighter like Prism but since Atom is built on top of web technologies I’m wondering if I can get this “for free”.



You can use


I’ll take a look thanks.