Template:Code
Hoppa till navigering
Hoppa till sök
Available doc translations

…
The Template:Code/doc/sv documentation page does not exist.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.
This template will allow you to format text as a one-line code.
Parameters and Examples
Parameters | Beskrivning | Exempel | Förhandsgranskning |
---|---|---|---|
{{{preset}}} | Preset Template Styles. The following presets are available:
|
Hello, World! Hello, World! Hello, World! Hello, World! Hello, World!
| |
{{{select}}} | Text selection mode. Uses the user-select CSS property. Default value is unset. | Hello, World! Hello, World!
| |
{{{style}}} | CSS styles. | Hello, World!
| |
{{{highlight}}} | Adds syntax highlighting for the language specified. ![]() |
int main() {return 0;} |