Skip to content

Instantly share code, notes, and snippets.

@qoh
Last active June 28, 2020 22:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qoh/ba95506351b085cfb2973e79ae16d979 to your computer and use it in GitHub Desktop.
Save qoh/ba95506351b085cfb2973e79ae16d979 to your computer and use it in GitHub Desktop.
Color chars
\c0 (byte 1)
Set color to color 0
\c1 (byte 2)
Set color to color 1
\c2 (byte 3)
Set color to color 2
\c3 (byte 4)
Set color to color 3
\c4 (byte 5)
Set color to color 4
\c5 (byte 6)
Set color to color 5
\c6 (byte 7)
Set color to color 6
\c7 (byte 11)
Set color to color 7
\c8 (byte 12)
Set color to color 8
\c9 (byte 13)
Set color to color 9
\cr (byte 15)
Set the color to #FFFFFF.
\cp (byte 16)
Save color for \co
\co (byte 17)
Set color to previously saved color
Misc
\t (byte 9)
Move text cursor to next column
\n (byte 10)
Move text cursor to next line
ML
<br>
Move to start of next line.
<font:fontname:fontsize>
Change the font family and size.
<tag:integer>
Mark the current vertical position for GuiMLTextCtrl::scrollToTag(integer).
<color:rrggbb[aa]>
Sets the text color.
<shadowcolor:rrggbb[aa]>
Sets the color of the text shadow.
<linkcolor:rrggbb[aa]>
Sets the text color used for links.
<linkcolorhl:rrggbb[aa]>
Sets the text color used for pressed links.
<shadow:xoffset:yoffset>
Set the current shadow offset. 0:0 disables shadow.
<bitmap[k]:path/to/file.png>
bitmapk will <sbreak> first.
<spush>
Push the current style onto the stack.
<spop>
Restore the current style from the stack.
<sbreak>
Move to next line until clear of justified float blocks.
<just:left>
Start left-aligned block.
<just:right>
Start right-aligned block.
<just:center>
Start center-aligned block.
<a:google.com/url>
Begin a link.
Underline will be hidden if the URL starts with gamelink.
Cannot contain : character (like https:, :800).
</a>
End the current link.
<lmargin%:percent>
<lmargin:pixels>
<rmargin%:percent>
<rmargin:pixels>
<clip:pixelwidth>
Interrupt the text at the current position + pixelwidth with ellipsis.
Set to 0 to disable clipping.
</clip>
Disable clipping.
<div:0/1>
Disable/enable highlighting the background of this line with fillColorHL.
<tab:a,b,c,...>
Set the tab stops (for \t) to pixel positions.
String escapes
\xHH
Single char byte escape
\r
Byte 8
\n
Newline
\t
Tab
<other>
The character itself
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment