Is there an easy way to add syntax highlighting to my various plugin\'s gh-pages using github\'s Pygments?
I know that every page runs through the Jekyll engine and
The default syntax highlighter is rouge (equivalent to highlighter: rouge
in your _config.yml file). With rouge, if you write a code block like this in markdown:
~~~js
let z = 26;
~~~
You can expect to get an HTML block like this:
let z = 26;
Then all you need is a CSS file (if you're using a GitHub Pages Theme, you will get the CSS automatically). I'm not sure where the CSS is officially supposed to come from, but
Feel free to customize the css to your liking.