All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mal.jamal-jamal.2.8.1.source-code.jamal.jim Maven / Gradle / Ivy

The newest version!
{@options trimVertical}
This file contains macros, which are used in readme files.
These macros help embedding Jamal macro samples and run them.


{@define sample(code)={#define :lastCode=code}.Jamal source
[source]
----
{#trimLines
code}
----}

{@define output=.output
[source]
----
{#trimLines trimVertical
{!#output {lastCode}}}
----
}

{@define numberedOutput=.output
[source]
----
{#numberLines format="%2d "
{#trimLines trimVertical
{!#output {lastCode}}}}
----
}

{@define untrimmedSample(code)={@define :lastCode=code}[source]
----
{@trimLines verticalTrimOnly
code}
----}

{@define untrimmedOutput=[source]
----
{#output {lastCode}}
----
}

define a macro with a name and a since version

{@define [named] MACRO(name="NAME OF THE MACRO",since="VERSION SINCE WHICH THE MACRO IS AVAILABLE")== `name`

sinc{@comment}e version `since`
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy