A game about forced loneliness, made by TACStudios
1# Styles
2
3Use styles to apply additional formatting to some or all of the text in a TextMesh Pro object. A style is a combination of opening and closing [rich text tags](RichText.md), and can also include leading and trailing characters.
4
5* To define styles, use a TextMesh Pro [style sheet](StyleSheets.md).
6
7* To apply styles to your text, use the [`<style>` rich text tag](RichTextStyle.md) in the text editor.
8
9## Custom styles example
10
11Say you want headings in your text to be big, red, and bold with an asterisk to either side and a line break at the end.
12
13
14
15That requires several tags for each heading, which makes the formatting cumbersome to maintain, and the text more difficult to read in the editor.
16
17`<font-weight=700><size=2em><color=#FF0000>*Heading*</color></size></font-weight><br>`
18
19It's easier to put all of the markup in a style. The example below shows a style called `H1`.
20
21
22
23Once you create the style you can format all of your headings with a single `<style>` tag.
24
25`<style="H1">Heading</style>`
26
27Not only does that make the text easier to read in the editor, you can now update all of the headings in your text just by changing the style.