# Creating new lines with strings

**URL:** <https://forum.universal-robots.com/t/creating-new-lines-with-strings/4370>\
**Category:** URScript\
**Created:** [May 23, 2019, 4:47pm UTC](https://forum.universal-robots.com/t/creating-new-lines-with-strings/4370 "2019-05-23T16:47:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [May 24, 2019, 7:27am UTC](https://forum.universal-robots.com/t/creating-new-lines-with-strings/4370/2 "2019-05-24T07:27:34Z")

</div>

You can use HTML formatting inside a string in URScript, for example if you create a popup using the following command:

```
popup("<html>Width: 20 inches<br>Height:10 inches<br>Would you like to continue with these settings?</html>")

```

This will for mat the text as you wish, with the `<br>` tag indicating a new line. You can also use other html tags to aid formatting too, enabling you to centre text, use **bold** or _italic_ text etc.

As for a yes/no popup, the only popups available URScript are those shown in the `popup()` command I used to demonstrate this. You will have to code your own if you want some yes/no functionality

Hope this helps.

EDIT: For anyone wondering this also works in java and thus can be used when configuring `JLabels` and other swing components for a URCap

---

_[View the full topic](https://forum.universal-robots.com/t/creating-new-lines-with-strings/4370)._
