← Back to Upcase

Code syntax highlighting

(Mark) #1

What is the best way to style pre / code? For example in Bourbon home page I’d like to find out how highlighting is done. Also I’m fairly new to the Bourbon family, I’m not sure if there is an easy way of implementing syntax highlighting other than using plugin like PrismJS, etc.

(Jurre) #2

The Bourbon homepage is actually open source, and looking through the code it looks like they use highlight.js.

If you want to do this server side in ruby, you could look into linguist by github or pygments. Hope this helps!