Free Hero Mesh

Artifact [83c2440aca]
Login
This is a mirror of the main repository for Free Hero Mesh. New tickets and changes will not be accepted at this mirror.

Artifact 83c2440aca19274bd43f99c42ff7fd08862e5a6d:

Wiki page [formatting controls] by zzo38 on 2018-10-13 01:29:09.
D 2018-10-13T01:29:09.217
L formatting\scontrols
P fcaf9f66447a207228c07d7b4b692e11689142c2
U zzo38
W 2121
Formatting controls:
  *  \0 (1): Make further text black.
  *  \1 (2): Make further text blue.
  *  \2 (3): Make further text green.
  *  \3 (4): Make further text cyan.
  *  \4 (5): Make further text red.
  *  \5 (6): Make further text purple.
  *  \6 (7): Make further text yellow.
  *  \7 (8): Make further text white.
  *  \b (15): Draw a horizontal line.
  *  \c (12): Center text.
  *  \i (14): Draw a picture. Follow by the class name (without <tt>$</tt> at first), a colon, the zero-based image number in that class, and then a backslash. The final backslash is a single backslash in both the escaped and unescaped representations.
  *  \l (11): Left align text (default).
  *  \n (10): Line break.
  *  \q (16): Quiz button; follow by one byte giving the [Hero Mesh key name|Hero Mesh key code] (normally an ASCII character 0-9 or A-Z). If clicked, plays a move using that key code.
  *  \x (31): In the escaped representation, followed by two hex digits, which represent a character code in the [https://en.wikipedia.org/wiki/Code_page_437|PC character set] (<tt>\x00</tt> is not allowed though; use <tt>\xFF</tt> instead, which has the same appearance). In unescaped representation, the byte 31 is followed directly by the next byte, rather than the hex codes.

The numbers in parentheses are the numbers used to represent these codes in the unescaped representation (used in binary files); the codes with backslash are escaped representations used in the class definition file. In the escaped representation, double a backslash to represent a backslash (and you also need a backslash before a quotation mark if you want a quotation mark in the text).

These are mostly same like in Hero Mesh, but the \x command is new in Free Hero Mesh, and the unescaped representation of the \i command is different in Free Hero Mesh than in Hero Mesh. Also, Hero Mesh uses unescaped representations for string literals in class codes, but Free Hero Mesh uses escaped representations.

Use [SQL functions] HEROMESH_ESCAPE and HEROMESH_UNESCAPE to convert between escaped and unescaped representations.
Z d8135bc6369f51c0148cbafe641b616f