# Custom popup text structure (newline, center, break, underline etc.)

**URL:** <https://forum.universal-robots.com/t/custom-popup-text-structure-newline-center-break-underline-etc/4567>\
**Category:** URScript\
**Created:** [June 20, 2019, 9:14am UTC](https://forum.universal-robots.com/t/custom-popup-text-structure-newline-center-break-underline-etc/4567 "2019-06-20T09:14:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon76956333](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@anon76956333](https://forum.universal-robots.com/u/anon76956333)\
**Post date:** [June 20, 2019, 9:14am UTC](https://forum.universal-robots.com/t/custom-popup-text-structure-newline-center-break-underline-etc/4567/1 "2019-06-20T09:14:54Z")

</div>

Hello everyone,

i would like to create the text structure in my operator popup messages more clearly by implementing things like mentioned above. I thought about simple arguments like “\n” that i can put into the operator message description, but that seems not to be possible.  
Does anyone have an idea or a solution?  
If it is helpful: I am working with version 3.9.

Thanks in advance,  
Marvin

---

<div class="post-metadata">

**Author:** ![sam.verity-hilton](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/sam.verity-hilton/32/6046_2.png) [@sam.verity-hilton](https://forum.universal-robots.com/u/sam.verity-hilton)\
**Post date:** [June 20, 2019, 9:19am UTC](https://forum.universal-robots.com/t/custom-popup-text-structure-newline-center-break-underline-etc/4567/2 "2019-06-20T09:19:20Z")

</div>

You can use HTML to format a string in URScript, please see [this post.](https://forum.universal-robots.com/t/creating-new-lines-with-strings/4370/2) Newline, underline, and line breaks are easy to implement. To centre text, you will need to use a div inside the html, for more information on this, see: [this post](https://stackoverflow.com/a/6810590/7137757) on Stack Overflow. The answer is for formatting text in java, but the principle works just the same in URScript

---

<div class="post-metadata">

**Author:** ![anon76956333](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@anon76956333](https://forum.universal-robots.com/u/anon76956333)\
**Post date:** [June 20, 2019, 9:23am UTC](https://forum.universal-robots.com/t/custom-popup-text-structure-newline-center-break-underline-etc/4567/3 "2019-06-20T09:23:20Z")

</div>

That`s exactly what i was looking for. Thank you! I must have overlooked this post…
