Garry's Mod Wiki


The markup library only contains a single function to create a MarkupObject.


string markup.Color( Color col )
A convenience function that converts a Color into its markup ready string representation.
string markup.Escape( string text )
Converts a string to its escaped, markup-safe equivalent.
MarkupObject markup.Parse( string markup, number maxWidth = nil )
Parses markup into a MarkupObject. Currently, this only supports fonts and colors as demonstrated in the example.