How to add custom syntax highlighting styles


#1

I wrote my own SyntaxHighlighterEngine class that using the Atom Highlights package.

The markup generation step works well, but to apply custom stylesheets the only way that I found is to add my own styles to /webroot/rsrc/css/core/syntax.css file and then rebuild the celerity map.

It is works now, but I want to know is there ant way to add custom syntax highlighting styles and not to modify the source files of Phabricator.


#2

a way to add custom syntax highlighting styles and not to modify the source files of Phabricator?

There’s no other way to do it right now. https://secure.phabricator.com/T5701 is the relevant ticket.

…apply custom stylesheets…
You could run another step to transpose the Atom’s generated output to one that looks like Pygments’, and then let the existing system do its thing.


#3

Thanks, avivey!

I think I can keep one changed file between Phabricator updates.

But this feature seems to be some incomplete without the ability to apply custom styles :frowning_face:.