How to support scrolling when using pygments with Jekyll

后端 未结 4 1571
眼角桃花
眼角桃花 2020-12-29 07:38

Is it possible to use horizontal scrolling rather than text wrapping in a code section highlughted with pygments when working in Jekyll.

Source of document:

4条回答
  •  无人及你
    2020-12-29 08:17

    Find your highlight.css at: /PROJECT_ROOT/assets/themes/THEME_NAME/css/highlight.css

    and add this line at the end:

    pre { white-space: pre; overflow: auto; }
    

    Thanks @manatwork for the solution.

提交回复
热议问题