Difference between revisions of "User:Philmasterplus/TemplateSandbox"

From Kolmafia
Jump to navigation Jump to search
(Replaced content with "...")
Tag: Replaced
 
Line 1: Line 1:
<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>
 

Latest revision as of 11:51, 25 December 2020

...