Click or drag to resize
Indented Code

This topic details the AMDL syntax and semantics of indented code blocks.

Function

TBD

Syntax

A block of text indented four spaces or one tab.

An indented code block consisting of a single line shall be interpreted as a command block; otherwise, it shall be interpreted as a non-specific code block.

Inside a command block:

  1. Command parameters may be specified using ordinary weak emphasis.

  2. Command switches may be specified using ordinary strong emphasis.

Note Note
Spaces and tabs are invisible in most editors, which might lead to unexpected results. It is therefore more advisable to use Fenced Code for code blocks.
Examples

1. Command:

AMDL
XCOPY **/s** **/e** _sourceFileSpec_ _destFileSpec_

2. Non-specific code:

AMDL
10 PRINT "Hello, Cruel World!"
20 GOTO 10
Example Output

1. Command:

XCOPY /s /e sourceFileSpec destFileSpec

2. Non-specific code:

10 PRINT "Hello, Cruel World!"
20 GOTO 10
Differences from PM
  1. No command element exists in PM.

  2. No inline formatting is allowed in PM indented code blocks.

amdl2maml Support

Complete.

See Also