Quantcast
Channel: Add syntax highlighting to gh-pages - Stack Overflow
Browsing latest articles
Browse All 6 View Live

Answer by Qwertie for Add syntax highlighting to gh-pages

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:~~~jslet z = 26;~~~You can expect to get...

View Article



Answer by jflaga for Add syntax highlighting to gh-pages

As pointed out by @David Douglas, "GitHub Pages now only supports Rouge, a pure-Ruby syntax highlighter"You have to put this in you _config.yml. This is from the _config.yml of Barry Clark's Jekyll...

View Article

Answer by David Douglas for Add syntax highlighting to gh-pages

"GitHub Pages now only supports Rouge, a pure-Ruby syntax highlighter" so you only need to change 'kramdown' syntax highligher to use 'rouge' in your _config.yml file.markdown: kramdownkramdown: input:...

View Article

Answer by Brent for Add syntax highlighting to gh-pages

Found this thread as the first hit while trying to figure out syntax highlighting, and I found an even easier way to do it that I thought I'd share. Just put the name of the language you want...

View Article

Answer by Tekkub for Add syntax highlighting to gh-pages

Pages already does pygments, there's nothing to install. Just use it!---layout: defaulttitle: Something with codes---Happy fun highlighting. [More...

View Article


Add syntax highlighting to gh-pages

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 provides syntax highlighting (ref). But...

View Article
Browsing latest articles
Browse All 6 View Live




Latest Images