Topic on Project:Support desk

syntaxhighlight custom colors

5
Sokote zaman (talkcontribs)

How do I black out the font and background color?


1 C:\Users\Your Name\AppData\Local\Programs\Python\Python36-32\Scripts>pip uninstall camelcase
2 Uninstalling camelcase-02.1:
3   Would remove:
4     c:\users\Your Name\appdata\local\programs\python\python36-32\lib\site-packages\camecase-0.2-py3.6.egg-info
5     c:\users\Your Name\appdata\local\programs\python\python36-32\lib\site-packages\camecase\*
6 Proceed (y/n)?
MarkAHershberger (talkcontribs)

Could you point to an example of what you want to do? It sounds like you would need to use a span and some CSS.

Sokote zaman (talkcontribs)

<div style="padding: 8px 20px;margin-bottom: 30px; text-align: left; clear: both; box-shadow: none!important; overflow-x: auto; background-color: none;">{{{title|}}} [[Image:Syntax.png|70px]]

{{#ifeq:{{{showlinenumbers|false}}}|true

|{{#tag:syntaxhighlight|{{{source|{{{1|}}}}}}|lang="{{{lang|text}}}"|highlight="{{{highlight|}}}"|enclose="div"|line="true"| style=" background: none;"}} |{{#tag:syntaxhighlight|{{{source|{{{1|}}}}}}|lang="{{{lang|text}}}"|highlight="{{{highlight|}}}"|enclose="div"|style=" background: none;"}}

}}

</div>


https://wikicod.ir/wiki/%D8%A7%D9%84%DA%AF%D9%88:%D8%B3%DB%8C%D9%86%D8%AA%DA%A9%D8%B3:%DA%A9%D9%86%D8%B3%D9%88%D9%84

AhmadF.Cheema (talkcontribs)

The pre/syntaxhighlight element will have to be included inside a div element which would define a new class such as syntaxhighlight-custom-color. Then that class will be used to define the new colour rules in MediaWiki:Common.css, something like:

.syntaxhighlight-custom-color pre { background-color: black; }
.syntaxhighlight-custom-color pre > font { color: red; }

Template:Terminal might be of interest to you.

Sokote zaman (talkcontribs)

Thank you for your guidance

What command should be used for highlight syntaxhighlight style?

thank you

Reply to "syntaxhighlight custom colors"