Skip to content

Instantly share code, notes, and snippets.

@revelt
Created September 17, 2015 07:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save revelt/6d91c846b5b1d346fd57 to your computer and use it in GitHub Desktop.
Save revelt/6d91c846b5b1d346fd57 to your computer and use it in GitHub Desktop.
if you want fluid pre-code boxes that wrap their code content, but don't introduce hardcoded line breaks when you copy-paste, you need this
/*this is the best CSS setup for <pre> <code> chunks: */
pre{
display: block;
word-break: break-all;
word-wrap: break-word;
white-space: pre-wrap;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment