Rich text: Difference between revisions
m (Bilka moved page User:Phoenix27833/Rich text to Rich text without leaving a redirect: Page is finished) |
m (small fixes) |
||
Line 1: | Line 1: | ||
{{Languages}} | {{Languages}} | ||
Rich text formatting introduced in [[Version history#0.17.0|0.17.0]] allows the use of tags within most of the game's textboxes to change the visual formatting of text or to embed interactable images/entities. Predefined text tags are employed for this purpose. | Rich text formatting introduced in [[Version history#0.17.0|0.17.0]] allows the use of tags within most of the game's textboxes to change the visual formatting of text or to embed interactable images/entities. Predefined text tags are employed for this purpose. | ||
Line 24: | Line 23: | ||
| [font=default-bold]Bold text | | [font=default-bold]Bold text | ||
| <b>Bold text</b> | | <b>Bold text</b> | ||
| <i>font-name</i> is the name of the [[ | | <i>font-name</i> is the name of the [[Data.raw#font|Factorio font]] to render | ||
|} | |} | ||
Line 144: | Line 143: | ||
|} | |} | ||
== See also == | |||
* [[Console]] |
Revision as of 15:43, 16 March 2019
Rich text formatting introduced in 0.17.0 allows the use of tags within most of the game's textboxes to change the visual formatting of text or to embed interactable images/entities. Predefined text tags are employed for this purpose.
Text modifiers
The color and font of text can be changed
Syntax | Example Input | Example Result | Description |
---|---|---|---|
[color=rgb]...[/color] | [color=red]Red[/color] text
[color=1,0,0]Red[/color] text |
Red text | rgb is a comma separated RGB color ranging from 0 to 1, or a color name
Available colors: default, red, green, blue, orange, yellow, pink, purple, white, black, gray, brown, cyan, acid. |
[font=font-name]...[/font] | [font=default-bold]Bold text | Bold text | font-name is the name of the Factorio font to render |
Tags
Tags are useful for sharing blueprints, marking map locations in chat or adding icons to map markers and train stations. Ctrl+alt clicking the map or ground will automatically insert a gps tag and post it into chat.
Shift clicking most things with the console open will insert a tag for that thing into chat.
When used in chat, the tag image will be followed by a text description, except for the img tag. Used elsewhere only the image is shown.