Difference between revisions of "Template:C"
From Maths
m |
m |
||
Line 18: | Line 18: | ||
| Optional styling, eg <code>color:#ffffff;</code> for white font | | Optional styling, eg <code>color:#ffffff;</code> for white font | ||
|} | |} | ||
− | </noinclude><includeonly><span style="font-family: monospace,Courier;{{{style|}}}">{{{1|}}}</span></includeonly> | + | </noinclude><includeonly><span style="font-family: monospace,Courier;color: #000;background-color: #F9F9F9;border: 1px solid #DDD;border-radius: 2px;padding: 1px 4px;{{{style|}}}">{{{1|}}}</span></includeonly> |
Revision as of 19:30, 16 October 2015
This is like the M
template only for code instead, adds a code block with optional styling.
Note that it uses a <span>
tag instead of the <code>
tags
Attribute | Default | Comment |
---|---|---|
1 | (empty string) | This is the code to show |
style
|
(empty string) | Optional styling, eg color:#ffffff; for white font
|