Skip to content

Instantly share code, notes, and snippets.

@helgatheviking
Created May 12, 2020 19:47
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 helgatheviking/ffed41f32741347795beb769b78401ae to your computer and use it in GitHub Desktop.
Save helgatheviking/ffed41f32741347795beb769b78401ae to your computer and use it in GitHub Desktop.
Style rules to make var_dump a hell of a lot more readable
.xdebug-var-dump {
/* These are technically the same, but use both */
overflow-wrap: break-word;
word-wrap: break-word;
-ms-word-break: break-all;
/* This is the dangerous one in WebKit, as it breaks things wherever */
word-break: break-all;
/* Instead use this non-standard one: */
word-break: break-word;
/* Adds a hyphen where the word breaks, if supported (No Blink) */
-ms-hyphens: auto;
-moz-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto;
white-space: pre-line;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment