Template:Syntax highlight
Izvor: Valve Developer Community
Prijeđi na navigaciju
Prijeđi na pretraživanje

Stranica s dokumentacijom Template:Syntax highlight/doc/hr ne postoji.
Umjesto toga bit će prikazana engleska dokumentacija koju možete prevesti pomoću Google Prevoditelja (ili sličnog softvera). Ako nakon ove poruke nema ničega, najvjerojatnije dokumentacija ne postoji niti na engleskom jeziku.
Umjesto toga bit će prikazana engleska dokumentacija koju možete prevesti pomoću Google Prevoditelja (ili sličnog softvera). Ako nakon ove poruke nema ničega, najvjerojatnije dokumentacija ne postoji niti na engleskom jeziku.
This template applies CSS to text to signify it is a certain category, such as a comment, type, string, etc. the CSS here is taken from how <syntaxhighlight> renders code.
Usage
{{Syntax highlight|category|text}}
Uses | Example | Shortcuts | Preview |
---|---|---|---|
Character/String | {{syntax highlight|character|'x'}} {{syntax highlight|string|"Hello, World!"}} |
{{stx|char|'x'}} {{stx|str|"Hello, World!"}} |
'x' |
Comment | {{syntax highlight|comment|//comment}} | {{stx|comm|//comment}} | //comment |
Control | {{syntax highlight|control|if}} | {{stx|ctrl|if}} | if |
Function | {{syntax highlight|function|main}} | {{stx|func|main}} | main |
Label | {{syntax highlight|label|final}} | {{stx|lbl|final}} | final |
Macro | {{syntax highlight|macro|#define}} | {{stx|mac|#define}} | #define |
Number/Operator | {{syntax highlight|number|3.0f}} {{syntax highlight|operator|+}} |
{{stx|no|3.0f}} {{stx|op|+}} |
3.0f |
Register | {{syntax highlight|register|%rax}} | {{stx|reg|%rax}} | %rax |
Regular Expression | {{syntax highlight|regular expression|/a*b+/}} | {{stx|regex|/a*b+/}} | /a*b+/ |
Type | {{syntax highlight|type|unsigned int}} | {{stx|type|unsigned int}} | unsigned int |