Notepad icon indicating copy to clipboard operation
Notepad copied to clipboard

Code Highlighting does not work

Open Zir0-93 opened this issue 8 years ago • 3 comments

Hello,

It seems the pygments or rouge highlighter is not working when I need to syntax color code using this theme. Is there any way to fix this?

Zir0-93 avatar Jul 25 '16 17:07 Zir0-93

+1

@Zir0-93 Did you find any solution?

@hmfaysal Any updates?

Choosing language while highlighting

js

Always gets rendered like this no matter what

nothing

Here's the HTML code being rendered.

html

Here's the CSS being rendered.

image

If it helps, here's my blog repo : https://github.com/saurabhshri/saurabhshri.github.io

saurabhshri avatar May 29 '17 15:05 saurabhshri

No solution found yet, started using a different theme for the time being.

Zir0-93 avatar May 30 '17 15:05 Zir0-93

@Zir0-93 Try

markdown:    kramdown

kramdown:
  input: GFM
  syntax_highlighter: rouge

and remove everything else related to highlighter like coderay.

I tried numerous things yesterday and finally got it to work. I think this should do it :)

PS : Here's my config file in case you want to see it yourself : https://github.com/saurabhshri/saurabhshri.github.io/blob/master/_config.yml

saurabhshri avatar May 30 '17 15:05 saurabhshri