Use syntax highlighting in package


#1

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”.

Thanks!


#2

You can use https://github.com/atom/highlights


#3

I’ll take a look thanks.