# Format specific text in power table cell

**URL:** <https://forum.inductiveautomation.com/t/format-specific-text-in-power-table-cell/71521>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [March 23, 2023, 7:18pm UTC](https://forum.inductiveautomation.com/t/format-specific-text-in-power-table-cell/71521 "2023-03-23T19:18:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![stuart.williams](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/stuart.williams/32/42310_2.png) [@stuart.williams](https://forum.inductiveautomation.com/u/stuart.williams)\
**Post date:** [March 23, 2023, 7:18pm UTC](https://forum.inductiveautomation.com/t/format-specific-text-in-power-table-cell/71521/1 "2023-03-23T19:18:20Z")

</div>

Hey everyone,

I've got a downtime events table. When users enter in downtime reasons they can leave notes. After some actions, I've got a script where the system can generate automatic notes to attach to the downtime record (e.g. "user edited record at 00:00", "user changed reason"). Customer wants to keep these system generated notes in addition to the operator entered notes which are currently held in the same notes column in sql, but it can get cluttered if the same event is messed with multiple times. Our proposed solution is formatting the system generated text to be bold or italic in the notes column and leave the manual notes non-formatted. My usual go-to of adding html headers to the text failed as the headers just show up as plain text in the column. Searching the forum, I've only found the ability to format the cell as a whole, which I don't want. Is it possible to format (bold/italic) just certain parts of a string in a power table cell?

TL;DR: a single power table cell can have multiple system-generated and user-entered notes. I want to distinguish between the two by making on text type bold. How do?

picture of snippet chicken scratch example

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/5/053f370fa28c70c2eafd5b33a95de38b856be41e.png)

---

<div class="post-metadata">

**Author:** ![leonardo.godoi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/leonardo.godoi/32/27178_2.png) [@leonardo.godoi](https://forum.inductiveautomation.com/u/leonardo.godoi)\
**Post date:** [March 23, 2023, 7:47pm UTC](https://forum.inductiveautomation.com/t/format-specific-text-in-power-table-cell/71521/2 "2023-03-23T19:47:09Z")

</div>

I'm not sure i understand what do you mean with:

> [@stuart.williams](#):
>
> My usual go-to of adding html headers to the text failed as the headers just show up as plain text in the column

Is it something like this?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/e/ae71a5988c7bdcb45f5e8ef184067ed383db4d51.png)  
You're using Vision, right?

---

<div class="post-metadata">

**Author:** ![stuart.williams](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/stuart.williams/32/42310_2.png) [@stuart.williams](https://forum.inductiveautomation.com/u/stuart.williams)\
**Post date:** [March 23, 2023, 7:57pm UTC](https://forum.inductiveautomation.com/t/format-specific-text-in-power-table-cell/71521/3 "2023-03-23T19:57:45Z")

</div>

Yes, I'm using vision. Ignition v8.1.24. This is what happens when I do it:

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/0/a0b8ae70c29d758ecccc72b3b14b375d08a70917.png)

---

<div class="post-metadata">

**Author:** ![leonardo.godoi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/leonardo.godoi/32/27178_2.png) [@leonardo.godoi](https://forum.inductiveautomation.com/u/leonardo.godoi)\
**Post date:** [March 23, 2023, 8:05pm UTC](https://forum.inductiveautomation.com/t/format-specific-text-in-power-table-cell/71521/4 "2023-03-23T20:05:38Z")

</div>

I've no idea what to do then  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/3/f3c3cfa8d9feecbf10e1faf6f45f1600621ac8a8.png)

---

<div class="post-metadata">

**Author:** ![stuart.williams](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/stuart.williams/32/42310_2.png) [@stuart.williams](https://forum.inductiveautomation.com/u/stuart.williams)\
**Post date:** [March 23, 2023, 8:06pm UTC](https://forum.inductiveautomation.com/t/format-specific-text-in-power-table-cell/71521/5 "2023-03-23T20:06:11Z")

</div>

Is your table component a regular table component or a power table?

---

<div class="post-metadata">

**Author:** ![leonardo.godoi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/leonardo.godoi/32/27178_2.png) [@leonardo.godoi](https://forum.inductiveautomation.com/u/leonardo.godoi)\
**Post date:** [March 23, 2023, 8:06pm UTC](https://forum.inductiveautomation.com/t/format-specific-text-in-power-table-cell/71521/6 "2023-03-23T20:06:39Z")

</div>

Power Table

---

<div class="post-metadata">

**Author:** ![stuart.williams](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/stuart.williams/32/42310_2.png) [@stuart.williams](https://forum.inductiveautomation.com/u/stuart.williams)\
**Post date:** [March 23, 2023, 8:16pm UTC](https://forum.inductiveautomation.com/t/format-specific-text-in-power-table-cell/71521/7 "2023-03-23T20:16:27Z")

</div>

When I have a new power table component and shove data in there it works. Disabled the configure cell script on the downtime table and it still shows the html as plain text. Guess I'll disable one thing at a time

---

<div class="post-metadata">

**Author:** ![stuart.williams](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/stuart.williams/32/42310_2.png) [@stuart.williams](https://forum.inductiveautomation.com/u/stuart.williams)\
**Post date:** [March 23, 2023, 8:22pm UTC](https://forum.inductiveautomation.com/t/format-specific-text-in-power-table-cell/71521/8 "2023-03-23T20:22:24Z")

</div>

It's word wrap 😐. Must pre-format the text behind the scenes and that's why the html tags are showing up

---

<div class="post-metadata">

**Author:** ![stuart.williams](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/stuart.williams/32/42310_2.png) [@stuart.williams](https://forum.inductiveautomation.com/u/stuart.williams)\
**Post date:** [March 23, 2023, 8:35pm UTC](https://forum.inductiveautomation.com/t/format-specific-text-in-power-table-cell/71521/9 "2023-03-23T20:35:59Z")

</div>

@Kevin.Herron sorry for the ping. Before I spend time working up my own solution: are html tags showing up in word-wrapped power table cells a bug or just a known and unfortunate tradeoff?
