Template:Code/Doc
Jump to navigation
Jump to search
| Undocumented Template You can help the Open Fortress Wiki by writing it. Until then, you'll have to read the source to figure out how to use it anyway. Which, I mean, while you're over there already... just saying, you may as well... |
This template will allow you to format text as a one-line code.
Parameters and Examples
| Parameters | Description | Examples | Preview |
|---|---|---|---|
{{{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. |
<syntaxhighlight lang="c" inline="1" style="background-color:transparent;">int main() {return 0;} </syntaxhighlight> |