Doug Smith
Doug Smith

Reputation: 29314

How do I make lines of code wrap in Jekyll?

By default all the lines scroll if wider than the box, but I'd like them to wrap. How do I accomplish this?

Upvotes: 6

Views: 2105

Answers (1)

David Jacquel
David Jacquel

Reputation: 52809

pre {
    white-space: pre-wrap;
}

And you can also make your lines are shorter than 80 characters.

Upvotes: 14

Related Questions