User:Philmasterplus/TemplateSandbox: Difference between revisions
Jump to navigation
Jump to search
Replaced content with "This page has been incorporated into Template:Data. Nothing to see here." Tag: Replaced |
No edit summary |
||
| Line 1: | Line 1: | ||
This | <includeonly><syntaxhighlight lang="D">{{{code}}}</syntaxhighlight></includeonly><noinclude> | ||
Provides syntax highlighting for ASH code. | |||
Technically, there is no true syntax highlighting for ASH. This template currently uses the syntax highlighting scheme for the D programming language, which works for most cases. | |||
==Example== | |||
<pre>{{User:Philmasterplus/TemplateSandbox|code= | |||
foreach it in $items[] | |||
{ | |||
if ( have_item( it ) ) | |||
{ | |||
print( it ); | |||
} | |||
} | |||
}}</pre> | |||
{{User:Philmasterplus/TemplateSandbox|code= | |||
foreach it in $items[] | |||
{ | |||
if ( have_item( it ) ) | |||
{ | |||
print( it ); | |||
} | |||
} | |||
}} | |||
[[Category:Basic Templates]] | |||
</noinclude> | |||
Revision as of 11:51, 25 December 2020
Provides syntax highlighting for ASH code.
Technically, there is no true syntax highlighting for ASH. This template currently uses the syntax highlighting scheme for the D programming language, which works for most cases.
Example
{{User:Philmasterplus/TemplateSandbox|code=
foreach it in $items[]
{
if ( have_item( it ) )
{
print( it );
}
}
}}
{{{code}}}