RustPython / rustpython.github.io

https://rustpython.github.io
MIT License
10 stars 15 forks source link

add code highlight, fixes #9 #26

Closed mireille-raad closed 3 years ago

mireille-raad commented 3 years ago

The current code blocks:

This PR ads code highlighting...

I used the built-in thing that comes with Jekyll https://jekyllrb.com/docs/liquid/tags/#code-snippet-highlighting http://rouge.jneen.net/

For the style sheets, I went with a Pygments theme called monokai

https://jekyllrb.com/docs/liquid/tags/#stylesheets-for-syntax-highlighting https://jwarby.github.io/jekyll-pygments-themes/languages/ruby.html

Screnshots

Screenshot from 2020-11-06 10-59-11

Screenshot from 2020-11-06 09-23-23

mobile is not ideal, the line wrap squishes things Screenshot from 2020-11-06 09-28-31