Columns
- 1st
- |1st|
- 1st|2nd
- |1st|2nd|
- 1st| ... |nth
- |1st| ... |nth|
- center
- |center|
- |␣center␣|
- |left
- |left␣|
- left␣|
- right|
- |␣right|
- |␣right
Special characters in text
- \ : character escape
- | : column delimiter
- { : property delimiter (start)
- } : property delimiter (end)
- - (1 or more, exclusive) : horizontal rule
- = (1 or more, exclusive) : paper cut
- ~ : space
- _ : underline
- " : emphasis
- ` : invert
- ^ : double width
- ^^ : double height
- ^^^ : 2x size
- ^^^^ : 3x size
- ^^^^^ : 4x size
- ^^^^^^ : 5x size
- ^^^^^^^ (7 or more) : 6x size
Escape characters in text
- \\ : \
- \| : |
- \{ : {
- \} : }
- \- : - (cancel horizontal rule)
- \= : = (cancel paper cut)
- \~ : ~
- \_ : _
- \" : "
- \` : `
- \^ : ^
- \n : wrap text manually
- \xnn : hexadecimal character code
- \char (others) : ignore
Properties
- {i|image: base64 png format}
- image (recommended: monochrome, critical chunks only)
- {c|code: string}
- barcode / 2D code
- {o|option: value, value ...}
- barcode / 2D code options (default: code128 2 72 nohri / 3 L)
- {a|align: left|center|right}
- line alignment (default: center)
- {w|width: number|*, number|* ...}
- column width (default: auto)
- {b|border: none|space|line|0-2}
- column border (default: space)
- {t|text: wrap|nowrap}
- text wrapping (default: wrap)
- {x|command: string}
- device-specific commands
- {_|comment: string}
- comment
Special characters in property values
- \ : character escape
- | : column delimiter
- { : property delimiter (start)
- } : property delimiter (end)
- : : key-value separator
- ; : key-value delimiter
- \\ : \
- \| : |
- \{ : {
- \} : }
- \; : ;
- \n : new line
- \xnn : hexadecimal character code
- \char (others) : ignore