Auto-hyphenation of WordPress theme applied to Crayon code
-
I’m using the WordPress Twenty Fourteen theme, which has auto-hyphenation enabled in its stylesheet.
Code displayed with the Crayon plugin also has auto-hyphenation (in code keywords, identifiers, etc.) as a consequence of this, which is unlikely to ever be desirable for rendering of code.
I’ve worked around this by adding the following to the CSS file of a duplicated Crayon theme:
.crayon-pre {
word-wrap: normal !important;
hyphens: none !important;
-moz-hyphens: none !important;
-webkit-hyphens: none !important;
-ms-hyphens: none !important;
}It might be worth having disabling of auto-hyphenation as a common style for Crayon themes.
Apologies if this has been addressed before, I couldn’t find mention in the other posts.
- The topic ‘Auto-hyphenation of WordPress theme applied to Crayon code’ is closed to new replies.