MediaWiki talk:Common.css

From D Wiki
Revision as of 12:30, 16 July 2020 by WebFreak001 (talk | contribs) (Suggest syntaxhighlight .nowrap CSS class)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Can we add a new selector

.mw-highlight.nowrap > pre {
    display: pre;
}

so we can use

<syntaxhighlight lang="D" class="nowrap">
import std.stdio;

void main()
{
    writeln("Hello, world!");
}
</syntaxhighlight>

on the homepage? Currently it breaks in the middle of the Hello world text, with that selector it would be possible to make it so that it can never break, which makes it look better.

--WebFreak001 (talk) 12:30, 16 July 2020 (UTC)