User:Philmasterplus/TemplateSandbox

From Kolmafia
Jump to navigation Jump to search


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}}}