Install rouge code highlighter on windows for jekyll

800 Views Asked by At

I have ruby for windows installed and working on my Windows 8 64-bit laptop. I also have jekyll installed and working and am able to build and serve a static website built using jekyll.

My problem is with syntax highlighting for code snippets in markdown posts in my jekyll setup.

The default highlighter, which is pygments, requires a python install and I don't want that on my windows machine.

So I found that rogue is a native syntax highlighter in ruby, and tried to install it by issuing the following command, as told in this jekyll on windows guide page http://jekyll-windows.juthilo.com/3-syntax-highlighting/

gem install rouge

However, when I do that, I am getting the following error.

ERROR:  Could not find a valid gem 'rogue' (>= 0) in any repository
ERROR:  Possible alternatives: logue, rogu, vogue

Not sure what I am doing wrong. Any help is appreciated. Note that the command windows is in admin mode, and also as stated earlier, ruby and jekyll are running fine on my laptop.

enter image description here

Finally, I am not behind any firewall or anything like that.

1

There are 1 best solutions below

4
On BEST ANSWER

Try gem install rouge not gem install rogue.