# How do i add a space in text

**URL:** <https://forum.kirupa.com/t/how-do-i-add-a-space-in-text/7898>\
**Category:** Uncategorized\
**Created:** [November 10, 2002, 12:13am UTC](https://forum.kirupa.com/t/how-do-i-add-a-space-in-text/7898 "2002-11-10T00:13:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![slayerment](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@slayerment](https://forum.kirupa.com/u/slayerment)\
**Post date:** [November 10, 2002, 12:13am UTC](https://forum.kirupa.com/t/how-do-i-add-a-space-in-text/7898/1 "2002-11-10T00:13:46Z")

</div>

how would i make my text have a space as if i pressed enter. is there a certain code? i want it to look like:

[color=blue]here is some text

heres the other text bjalkjds;lkfja;sdlkjf[/color]

i tried putting the text and then just hitting enter, but then it doesn’t work. is this possible w/ only 1 text field?  
thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 10, 2002, 3:28pm UTC](https://forum.kirupa.com/t/how-do-i-add-a-space-in-text/7898/2 "2002-11-10T15:28:45Z")

</div>

_cough_ u just press enter _cough_

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 10, 2002, 4:51pm UTC](https://forum.kirupa.com/t/how-do-i-add-a-space-in-text/7898/3 "2002-11-10T16:51:34Z")

</div>

well im loading the code in from a frame. so its like:

\_root.text1 = “blah blah blah  
blah blah balh”;

and when i press enter it gives me an error message. is there a certain like break code or something i use?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 10, 2002, 6:47pm UTC](https://forum.kirupa.com/t/how-do-i-add-a-space-in-text/7898/4 "2002-11-10T18:47:20Z")

</div>

/nb

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 10, 2002, 6:51pm UTC](https://forum.kirupa.com/t/how-do-i-add-a-space-in-text/7898/5 "2002-11-10T18:51:28Z")

</div>

you could use html 🙂

```php

_root.mytextfield = textline1blabla<br>textline2blabla
<br> is for line break

```

man this doesn’t whow the html code 😏  
It just adds a new line…  
well the line break in html is  
“\<” + “br” + “\>”

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 10, 2002, 6:58pm UTC](https://forum.kirupa.com/t/how-do-i-add-a-space-in-text/7898/6 "2002-11-10T18:58:29Z")

</div>

i dont quite get this. what do the is and for do?
