2 /* All supported programming languages are written left-to-right */
9 /* Use a more commonly found tab size of 4 (e.g. as used in CodeEditor)
10 instead of the browser-default value of 8 */
16 /* Avoid displaying double borders for nested 'code' elements.
17 Before we started using the 'code' tag for inline code snippets,
18 <code><syntaxhighlight enclose=none ...>...</syntaxhighlight></code>
19 was a common pattern. Continue supporting it in existing content. */
20 code code.mw-highlight {
21 background-color: transparent;
26 /* The nested pre already has a background. T126010 */
28 background-color: inherit;
32 * Don't show a red border around syntax errors. This behavior may be useful
33 * in code editors, but it is not useful in a wiki environment, especially
34 * given the longstanding habit of using an existing, mostly-compatible lexer
35 * to highlight a language for which no lexer exists.
41 /* Highlight background of whole lines, not just text in them */
46 /* Make line numbers non copyable */
47 .mw-highlight .lineno {
48 -moz-user-select: none;
49 -webkit-user-select: none;
50 -ms-user-select: none;
53 /* To interact better with the 'display: block' above, doesn't affect other uses */
55 .mw-highlight.mw-content-ltr .lineno {
60 .mw-highlight.mw-content-rtl .lineno {