mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-23 22:03:28 +00:00
75f5c9b2be
The highlightSpecialChars() should act mostly identical to CM5. An example is the soft hyphen (U+00AD). These are highlighted as a red dot because they are non-printable characters. The i18n may seem like overkill, but CM6 would otherwise actually print the same message in plain English and without a way to localize it. Per request at T181677, we also highlight non-breaking space and the narrow non-breaking space. These are shown as a faint gray dot, to match CM6's highlightWhiteSpace() extension. That extension isn't used here because it would also highlight normal spaces, which we don't want. Bug: T181677 Change-Id: Iac1a8cf78e4cd0a27abc917f4b70bdfbaf86252a
15 lines
211 B
Plaintext
15 lines
211 B
Plaintext
.cm-editor {
|
|
height: 100%;
|
|
}
|
|
|
|
.cm-matchingBracket,
|
|
.cm-focused .cm-matchingBracket {
|
|
background-color: #eee;
|
|
box-shadow: inset 0 0 1px 1px #999;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.cm-special-char-nbsp {
|
|
color: #888;
|
|
}
|