Template:Stx: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{#if:{{{1|}}}
Manages shortcuts for {{tl|link=syntax highlight}}. See its documentation for supported shortcuts. This template also forwards the {{param|code}} parameter to {{tl|syntax highlight}}.
|{{stx/shortcuts|{{{1}}}|{{{2}}}}}{{#if:{{{3|}}}
<onlyinclude><includeonly>{{Syntax highlight|{{#switch:{{{1}}}
|{{stx/shortcuts|{{{3}}}|{{{4}}}}}{{#if:{{{5|}}}
|char|str=character
|{{stx/shortcuts|{{{5}}}|{{{6}}}}}{{#if:{{{7|}}}
|comm=comment
|{{stx/shortcuts|{{{7}}}|{{{8}}}}}{{#if:{{{9|}}}
|ctrl=control
|{{stx/shortcuts|{{{9}}}|{{{10}}}}}{{#if:{{{11|}}}
|func=function
|{{stx/shortcuts|{{{11}}}|{{{12}}}}}{{#if:{{{13|}}}
|lbl=label
|{{stx/shortcuts|{{{13}}}|{{{14}}}}}{{#if:{{{15|}}}
|mac=macro
|{{stx/shortcuts|{{{15}}}|{{{16}}}}}{{#if:{{{17|}}}
|no|op=number
|{{stx/shortcuts|{{{17}}}|{{{18}}}}}{{#if:{{{19|}}}
|reg=register
|{{stx/shortcuts|{{{19}}}|{{{20}}}}}{{#if:{{{21|}}}
|regex=regular expression
|{{stx/shortcuts|{{{21}}}|{{{22}}}}}{{#if:{{{23|}}}
|type=type
|{{stx/shortcuts|{{{23}}}|{{{24}}}}}{{#if:{{{25|}}}
}}|{{{2}}}|code={{{code|0}}}}}</includeonly></onlyinclude>
|{{stx/shortcuts|{{{25}}}|{{{26}}}}}{{#if:{{{27|}}}
|{{stx/shortcuts|{{{27}}}|{{{28}}}}}{{#if:{{{29|}}}
|{{stx/shortcuts|{{{29}}}|{{{30}}}}}{{#if:{{{31|}}}
|{{stx/shortcuts|{{{32}}}|{{{33}}}}}
}}
}}
}}
}}
}}
}}
}}
}}
}}
}}
}}
}}
}}
}}
}}
}}

Revision as of 13:52, 3 August 2023

Manages shortcuts for {{syntax highlight}}. See its documentation for supported shortcuts. This template also forwards the {{{code}}} parameter to {{syntax highlight}}.