This template will allow you to format text as a one-line code.
This template is usually written in a single line. To use it, insert {{Code}}
into the desired page and specify the parameters to the right of the template name in the following format: {{Code|parameter 1 = value|parameter 2 = value}}
.
Parameters | Popis | Náhľad |
---|---|---|
| <Text> | 1 = <Text> |
The text that will be displayed. Can contain links, templates and raw html, except when the {{{lang}}} parameter is used. | Hello, World!
|
| lang = <Option> | Adds syntax highlighting for the language specified using syntaxhighlight tag with inline attribute. List of Supported languages. |
int main() { return 0; }
|
| style = <CSS> | CSS styles. Note that some styles require !important to be specified.
|
Colored text
|