# Text, title and legend format

**URL:** <https://discourse.bokeh.org/t/text-title-and-legend-format/7897>\
**Category:** Community Support\
**Created:** [May 31, 2021, 3:08pm UTC](https://discourse.bokeh.org/t/text-title-and-legend-format/7897 "2021-05-31T15:08:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lezamora](https://discourse.bokeh.org/user_avatar/discourse.bokeh.org/lezamora/32/3588_2.png) [@lezamora](https://discourse.bokeh.org/u/lezamora)\
**Post date:** [May 31, 2021, 3:08pm UTC](https://discourse.bokeh.org/t/text-title-and-legend-format/7897/1 "2021-05-31T15:08:54Z")

</div>

Hello everyone, my query is the following:

I want to add formatting to certain words within a text title, such as color, bold, italic.  
Also line breaks in some cases.

I leave an example used in another library where they format certain text:

```
plt.text(-0.52, 36,
         '$\\bf{BEFORE}$ program, the\n' 
         'majority of children felt\n'
         'just $\\mathit{OK}$ about science.', 
         fontsize=14,
         linespacing=1.3, 
         color=GRAY3)

```

I find it impossible to do this in bokeh, and the solutions I found make the code ugly.

Does anyone have a more practical solution?

---

<div class="post-metadata">

**Author:** ![Bryan](https://discourse.bokeh.org/user_avatar/discourse.bokeh.org/bryan/32/3625_2.png) [@Bryan](https://discourse.bokeh.org/u/Bryan)\
**Post date:** [June 2, 2021, 3:47pm UTC](https://discourse.bokeh.org/t/text-title-and-legend-format/7897/2 "2021-06-02T15:47:21Z")

</div>

It’s not clear: are you trying to style the text for a plot title (which is always “outside” the central plot frame) or for some kind of label or text glyph (which is always “inside” the central plot frame)?

Regardless:

- multi-line titles are not currently supported (but you can add multiple `Title` annotations that stack)
- No “markup” is supported for styling in either case. For `text` or `Label` (or `LabelSet`) you could style individual words separately.
