Dash Markup
Introduction
-
“Dash” refers to the ASCII glyph
0x2d-, which is also called “hyphen” or “minus” in various context. -
Dash Markup is
line of text that ends with dash:
Dash - Markup --
-
Dash Markup is designed for
typing & parsing with ease.
For example, it can translate to XML:<Dash Markup />
You may use & extend it for anything suitable in your mind. -
Let’s define:
-
“
-” is a single dash, -
“
--” is a double dash, and - other things between spaces are words.
-
“
-
Notes:
- Only dashes, spaces, and newlines are meaningful for Dash Markup syntax;
- Mixing up dash markup and plain text or whatever format is completely ok;
- Spaces around the dashes are strict;
- Indents are treated as plain text;
- In case regular dashes are wanted where dashes parsed as part of syntax, use more than 2 dashes;
- Dash Markup is loose: just do whatever to edge & undefined cases.
That’s all for Dash Markup itself.
Example Use Case(s)
See an excellent use case: Dash XML .