zutrinken / bleak

Ghost Theme
https://bleak.peteramende.de
MIT License
535 stars 130 forks source link

Ability to change the highlight.js theme #18

Open InsidersByte opened 8 years ago

InsidersByte commented 8 years ago

It would be nice if it was possible to change the highlight.js theme.

I first tried by adding <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/styles/darkula.min.css"> to the code injection head, but it didn't work exactly (see below).

screen shot 2016-04-13 at 15 59 58

I was hoping it would look something like this.

screen shot 2016-04-13 at 16 01 18

To get it to work i used the developer tools to disable the backgrounds from both pre.codeblock code and pre.codeblock .lines.

sethbergman commented 6 years ago

You can also use prism.js for syntax highlighting. http://prismjs.com/