markup.Parse
From GMod Wiki
Function | |
Syntax |
markup.Parse( String markup, Number (optional) max width ) Where is this used? |
Description: | |
Parses markup text so it can be used in VGUI elements | |
Returns: | Table :MarkupObject |
Part of Library: | markup |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Markup.Parse]Markup.Parse [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Tags Supported
- \t & \n are supported for adding tabs and new lines.
- <font> / <font> - Change the font used
- Example: <font=HUDText>Here's some text</font>
- See: surface.CreateFont or surface.SetFont
- Example: <font=HUDText>Here's some text</font>
- <color> / <color> - Change the colour used
- Example: <color=255,0,0,255>Red text</color>
- Example: <color=red>Red text</color>
- For a full list of colour names, see Markup Colour Names.
Additional Notes
- N/A
See Also
- N/A