Ayush's Blog

Handle Code Overflow In Jekyll 3

Code overflow in Jekyll 3 by default uses a visible value.

To allow users to scroll the code you can add

1
2
3
.highlight {
  overflow-x: scroll;
}

to your syntax.css file.

This will add scroll bars to your code for viewing overflowing text.

Reference: MDN-overflow-x