Template:Syntax highlight: Difference between revisions
Jump to navigation
Jump to search
(manually implies by hand) |
No edit summary |
||
Line 3: | Line 3: | ||
<onlyinclude><includeonly><!-- | <onlyinclude><includeonly><!-- | ||
--><span style="{{#switch:{{{1}}} | --><span style="{{#switch:{{{1}}} | ||
|character|string=color: #BA2121; | |character|string=color: #BA2121; <!-- not converted --> | ||
|comment=color: #408080;font-style: italic; | |comment=color: #408080;font-style: italic; <!-- not converted --> | ||
|control=color: #008000;font-weight: bold; | |control=color: #008000;font-weight: bold; <!-- not converted --> | ||
|function=color: # | |function=color: #D8D8D8; | ||
|label=color: #A0A000; | |label=color: #A0A000; <!-- not converted --> | ||
|macro=color: #BC7A00; | |macro=color: #BC7A00; <!-- not converted --> | ||
|number|operator=color: #666666; | |number|operator=color: #666666; <!-- not converted --> | ||
|register=color: #19177C; | |register=color: #19177C; <!-- not converted --> | ||
|regular expression=color: #BB6688; | |regular expression=color: #BB6688; <!-- not converted --> | ||
|type=color: #B00040; | |type=color: #B00040; <!-- not converted --> | ||
}}">{{{2|}}}</span><!-- | }}">{{{2|}}}</span><!-- | ||
--></includeonly></onlyinclude> | --></includeonly></onlyinclude> |
Revision as of 19:00, 30 July 2023
Todo: calculate the results of the current colors after
filter: invert(1) hue-rotate(180deg)
and change these colors to them. It's what an official wikipedia extension does for dark mode, and will contrast against a dark background better. VDC doesn't allow the filter
property.The above documentation is transcluded from Template:Syntax highlight/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.