# Html in mouse over text (Perspective)

**URL:** <https://forum.inductiveautomation.com/t/html-in-mouse-over-text-perspective/75821>\
**Category:** General Discussion\
**Tags:** perspective\
**Created:** [July 2, 2023, 9:27pm UTC](https://forum.inductiveautomation.com/t/html-in-mouse-over-text-perspective/75821 "2023-07-02T21:27:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bebel](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bebel](https://forum.inductiveautomation.com/u/bebel)\
**Post date:** [July 2, 2023, 9:27pm UTC](https://forum.inductiveautomation.com/t/html-in-mouse-over-text-perspective/75821/1 "2023-07-02T21:27:43Z")

</div>

I've read several posts talking about this. The solution to use html for multi-line text seems to work for them, but it is not for me. In the binding results it even shows the text on two lines but when shown as a tooltip it is not using the html as formatting instructions.  
Using Perspective v8.1.26

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/8/888a26989913cbbcf50397b6398af94cacedd5ee.png)

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [July 2, 2023, 10:09pm UTC](https://forum.inductiveautomation.com/t/html-in-mouse-over-text-perspective/75821/2 "2023-07-02T22:09:27Z")

</div>

Are you sure those solutions weren't for _Vision_ and not _Perspective_?

- Set `meta.tooltip.style.white-space : pre-wrap`
- Set your binding transform script to `return "Line 1.\nLine 2.\nLine 3."
- You might also wish to set `meta.tooltip.style.textAlign : left`

Unless the tooltip is to change depending on some other condition, there is no need to program it in a binding. Just type the text into `meta.tootip.text`. It has the slight quirk that to get the editor dialog open you have to type a long line of text and hit enter before the multiline editor icon appears at the end of the line. Then you just hit Enter on the end of each line and omit the `\n` newline codes.
