# Text not rendering as html

**URL:** <https://forum.kirupa.com/t/text-not-rendering-as-html/234153>\
**Category:** Uncategorized\
**Created:** [July 31, 2007, 3:57am UTC](https://forum.kirupa.com/t/text-not-rendering-as-html/234153 "2007-07-31T03:57:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iceflyin](https://avatars.discourse-cdn.com/v4/letter/i/9de053/32.png) [@iceflyin](https://forum.kirupa.com/u/iceflyin)\
**Post date:** [July 31, 2007, 3:57am UTC](https://forum.kirupa.com/t/text-not-rendering-as-html/234153/1 "2007-07-31T03:57:53Z")

</div>

EDIT: Never mind, figured it all out.

For those who’s text won’t render as html, remember to use textfield.htmlText.

For stylesheets, use:

```auto

var style:StyleSheet = new StyleSheet();
var styleObj:Object = new Object();
styleObj.display = "inline";
styleObj.color = "#2DAAFD";
style.setStyle("highlight", styleObj);
this.theTextField.styleSheet = style;

//in a text field, use <highlight>the highlighted text</highlight> to use the style.

```
