# Wondering if there was a way to add multiple styles or colors to one text string

**URL:** <https://forum.inductiveautomation.com/t/wondering-if-there-was-a-way-to-add-multiple-styles-or-colors-to-one-text-string/112163>\
**Category:** Ignition\
**Tags:** scripting, perspective\
**Created:** [November 13, 2025, 5:03pm UTC](https://forum.inductiveautomation.com/t/wondering-if-there-was-a-way-to-add-multiple-styles-or-colors-to-one-text-string/112163 "2025-11-13T17:03:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![travisaggiebrown](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/travisaggiebrown/32/85824_2.png) [@travisaggiebrown](https://forum.inductiveautomation.com/u/travisaggiebrown)\
**Post date:** [November 13, 2025, 5:03pm UTC](https://forum.inductiveautomation.com/t/wondering-if-there-was-a-way-to-add-multiple-styles-or-colors-to-one-text-string/112163/1 "2025-11-13T17:03:20Z")

</div>

I have a table that shows some values that are comma separated I wanted to make it where some values appeared as green and some appeared as red but be in the same string. I was hoping there was a way to get it to run as html like a markdown, but I couldn’t figure it out and gave up. I still feel like it would be useful to have multicolored text in a string, so I was wondering if anyone had any leads.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [November 13, 2025, 5:06pm UTC](https://forum.inductiveautomation.com/t/wondering-if-there-was-a-way-to-add-multiple-styles-or-colors-to-one-text-string/112163/2 "2025-11-13T17:06:49Z")

</div>

Can probably be accomplished in the markdown component. Otherwise would take sometype of Javascript, in order to modify the final compiled markup at runtime.

---

<div class="post-metadata">

**Author:** ![Ryan\_Deardorff](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan_deardorff/32/63815_2.png) [@Ryan\_Deardorff](https://forum.inductiveautomation.com/u/Ryan_Deardorff)\
**Post date:** [November 13, 2025, 5:20pm UTC](https://forum.inductiveautomation.com/t/wondering-if-there-was-a-way-to-add-multiple-styles-or-colors-to-one-text-string/112163/3 "2025-11-13T17:20:24Z")

</div>

> [@travisaggiebrown](#):
>
> I was hoping there was a way to get it to run as html like a markdown

There is. Create a view with a Markdown component in it, then apply that view to the table column using the `viewPath` property.

The data for the row will automatically be passed in as a parameter named `rowData`.

---

<div class="post-metadata">

**Author:** ![travisaggiebrown](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/travisaggiebrown/32/85824_2.png) [@travisaggiebrown](https://forum.inductiveautomation.com/u/travisaggiebrown)\
**Post date:** [November 13, 2025, 6:03pm UTC](https://forum.inductiveautomation.com/t/wondering-if-there-was-a-way-to-add-multiple-styles-or-colors-to-one-text-string/112163/4 "2025-11-13T18:03:24Z")

</div>

yeah, that was what I came to the conclusion of too, I was just hoping there was a way that was less tedious
