# Dynamic textbox

**URL:** <https://forum.kirupa.com/t/dynamic-textbox/102363>\
**Category:** Uncategorized\
**Created:** [February 23, 2004, 1:40am UTC](https://forum.kirupa.com/t/dynamic-textbox/102363 "2004-02-23T01:40:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ntan](https://avatars.discourse-cdn.com/v4/letter/n/5f8ce5/32.png) [@ntan](https://forum.kirupa.com/u/ntan)\
**Post date:** [February 23, 2004, 1:40am UTC](https://forum.kirupa.com/t/dynamic-textbox/102363/1 "2004-02-23T01:40:33Z")

</div>

I am trying to write a paragraph ( its for school project ) and i am using dynamic textbox and variables. I linked a button with

on(release){  
textbox = " … "  
}

to target my textbox, changing its text. The only problem is, I am trying to write an essay type format, which has several paragraphs within it, and if i have enters within the code, it screws up, like the example below.

on(release){  
textbox = " first paragraph.  
new paragraph goes here."  
}

Could anyone tell me how i write in the dynamic textbox to allow it to have paragraph indents and spacing. thx!

---

<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:** [February 23, 2004, 2:56am UTC](https://forum.kirupa.com/t/dynamic-textbox/102363/2 "2004-02-23T02:56:19Z")

</div>

Well, i know of two things you can do:

1. After each paragraph ghetto-fy your indents using html text and non-breaking spaces:

```auto
myTextBox.htmlText = "&nbsp;&nbsp;&nbsp;This is my first paragraph. <br> &nbsp;&nbsp;&nbsp;&nbsp; This is my second paragraph.";

```

or you can use CSS to format the indents:  
[http://www.kirupa.com/developer/mx2004/css.htm](http://www.kirupa.com/developer/mx2004/css.htm)
