basiljs / basiljs.github.io

W.I.P. Basil.js reference build with jekyll and documentation.js
https://basiljs2.netlify.app
Other
5 stars 0 forks source link

Enhance Syntax highlighter #170

Open ff6347 opened 4 years ago

ff6347 commented 4 years ago
ff6347 commented 4 years ago

Took a look at some options mostly concerning the alternating row colors. On the example you send me you re using highlight.js which does all kind of JS magick to create the lines. The end result is an ol > li setup for creating the alternating row colors.

The options in jekyll are all based on the markdown parser. Rouge (which we are currently using, commonmark or redcarpet). As far as I could see none has alternating row colors build in.

Means for the alternating colors we would have to do some magick with the possible markdown parsers or switch to hightlight.js

I would not want to switch to highlight.js

ff6347 commented 4 years ago

The other things can be done