This is the list of supported directives, with their supported combinations of parameters and aliases:

Initialisation and parsing control

  • #manual <version> (aliases: #version): The version of DotNet Manuals which the current page is meant for. It should be the first line of your script.
  • #include "<file>": Includes another page within the current page.
  • #ifparser "<string>" {all|directives|none} (aliases: #ifparser-begin): If the current parser matches the provided descriptor (which can be obtained through the @@parser; variable ― and could be, for instance, parser.console, or render.text, render.html, etc.), specifies whether the following elements and directives must be parsed or not.
  • #else [{all|directives|none}] (valid within an #ifparser - #/ifparser block only): Specifies what should be parsed otherwise.
  • #/if (aliases: #if-end* ): Terminates the validity of the previous #if... or #else blocks.

Properties and parts of the document

  • #title "<string>" (aliases: #head): The title for the current page.
  • #subtitle "<string>" (aliases: #subhead, #titlesub, #headsub): The sub-title for the current page.
  • #section "<string>" (aliases: #section-begin): Begins a new section. Remember to always close the previous section, unless you mean to nest them.
  • #/section (aliases: #section-end): Ends the current section.
  • #width <int+>: The width of the renderer window, or the maximum length of a row, in textual renderers. Not every parser/renderer handles this directive.
  • #height <int+>: The height of the renderer window. Not every parser/renderer handles this directive.

Blocks and structures

  • #highlight <format> (aliases: #highlight-begin, #code, #code-begin): Highlights code text in the following elements.
  • #/highlight (aliases: #highlight-end, #/code, #code-end): Ends the current (highlighted) code block.
  • #table "<col1:size>",…,"<colN:size>" [...] (aliases: #table-begin): Indicates that following elements should be parsed as cells of a table.
  • #/table (aliases: #table-end): Ends the current table.

Last edited Nov 7, 2013 at 4:37 PM by cav94mat, version 14