The Choose Example drop-down menu will load various forms of aa_macro usage. You can execute the macros using the Test button. You can also edit the examples, or clear the text entry area (fourth box down) entirely and try your own hand at aa_macro construction. Check them out, and feel free to peruse the aa_macro documentation.
wtfm is a documentation system based on aa_macro.
aa_macro is a markup and macro language. It uses two types of tags:
You can pass parameters to styles; the built-in [b] represents content past a style's keyword:
[style italics <i>[b]</i>] | ← the style definition |
When that style is used, the content, in this case, "slanty text", is passed to the style and placed where the [b] tag is located:
{italics slanty text} | ← the style invocation |
<i>slanty text</i> | ← the result |
You can nest styles and built-ins. Here's how that can look:
[style italics <i>[b]</i>] | ← style definition |
[style bold <b>[b]</b>] | ← style definition |
{italics {bold fat, slanty text}} | ← invocation |
<i><b>fat, slanty text</b></i> | ← the result |
Ending a line with two spaces "eats" the following newline.
This is just the tip of the proverbial iceberg. aa_macro's broad selection of built-in keywords provides the tools to process text in many ways; aa_macro styles can do almost anything to, and with, the content passed to them.
Note: In the context of this test page, a number of limits have been applied to macro processing for security purposes. None of them will affect the demos as provided here, but you may run into them if you increase looping counts, etc. The macro processor itself does not impose such limits by default.