# Html tags in .txt files?

**URL:** <https://forum.kirupa.com/t/html-tags-in-txt-files/15830>\
**Category:** Uncategorized\
**Created:** [March 18, 2003, 2:58pm UTC](https://forum.kirupa.com/t/html-tags-in-txt-files/15830 "2003-03-18T14:58:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![p13](https://avatars.discourse-cdn.com/v4/letter/p/4bbf92/32.png) [@p13](https://forum.kirupa.com/u/p13)\
**Post date:** [March 18, 2003, 2:58pm UTC](https://forum.kirupa.com/t/html-tags-in-txt-files/15830/1 "2003-03-18T14:58:19Z")

</div>

I’m loading external .txt files into scrolling text boxes and would like to know if I can have html links (urls and email) and html text formatting (bold, italic, etc…) in the .txt files. I tried adding the tags in the .txt files but it didn’t work… Any ideas?

Thanks in advance…

-P.

---

<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:** [March 18, 2003, 4:15pm UTC](https://forum.kirupa.com/t/html-tags-in-txt-files/15830/2 "2003-03-18T16:15:21Z")

</div>

Have you made sure that you have enabled html for your text box in the properties inspector? It’s the little \<\> button. 🙂

---

<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:** [March 18, 2003, 4:27pm UTC](https://forum.kirupa.com/t/html-tags-in-txt-files/15830/3 "2003-03-18T16:27:45Z")

</div>

Yeah, I tried that, it didn’t work. If I enter a mailto tag for email for example, I see the tag and not a link.

Thanks for the suggestion though… 😏

-P.

---

<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:** [March 18, 2003, 6:02pm UTC](https://forum.kirupa.com/t/html-tags-in-txt-files/15830/4 "2003-03-18T18:02:06Z")

</div>

You have to html enable your text box, and then tell it to read htmlText instead of just text.

Sooo…

yourTextBox.html = true

That sets it to true…

And…

yourTextBox.htmlText = variableNameHere

(that should replace yourTextBox.text = variableNameHere)

---

<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:** [March 18, 2003, 6:21pm UTC](https://forum.kirupa.com/t/html-tags-in-txt-files/15830/5 "2003-03-18T18:21:40Z")

</div>

Great! That worked… Thanks a lot! :beam:

-P.

---

<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:** [March 18, 2003, 6:22pm UTC](https://forum.kirupa.com/t/html-tags-in-txt-files/15830/6 "2003-03-18T18:22:47Z")

</div>

No problem 🙂
