# Perspective: How to format parts of a Label differently?

**URL:** <https://forum.inductiveautomation.com/t/perspective-how-to-format-parts-of-a-label-differently/40459>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [November 9, 2020, 7:39pm UTC](https://forum.inductiveautomation.com/t/perspective-how-to-format-parts-of-a-label-differently/40459 "2020-11-09T19:39:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [November 9, 2020, 7:39pm UTC](https://forum.inductiveautomation.com/t/perspective-how-to-format-parts-of-a-label-differently/40459/1 "2020-11-09T19:39:03Z")

</div>

Is it possible to format a Label differently throughout the text? e.g. to make words italic or bold?

The **fox** jumped over the _chicken_

---

<div class="post-metadata">

**Author:** ![schenk](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@schenk](https://forum.inductiveautomation.com/u/schenk)\
**Post date:** [November 9, 2020, 8:09pm UTC](https://forum.inductiveautomation.com/t/perspective-how-to-format-parts-of-a-label-differently/40459/2 "2020-11-09T20:09:29Z")

</div>

I don’t believe so, but the Markdown component can.

`<html>The <b>fox</b> jumped over the <i>chicken</i>`

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [November 9, 2020, 8:44pm UTC](https://forum.inductiveautomation.com/t/perspective-how-to-format-parts-of-a-label-differently/40459/3 "2020-11-09T20:44:01Z")

</div>

I think the previous post should have a closing html tag (not required, but safer). Also, you can do the same thing with markdown language:

```auto
<html>The <b>fox</b> jumped over the <i>chicken</i>.</html>

But the **chicken** had the last *laugh*.

```

Result:  
 ![Screen Shot 2020-11-09 at 12.43.38PM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/8/9818462e618e87bd4e68f7bedf899bad269dd2b0.png)

---

<div class="post-metadata">

**Author:** ![mdemaris](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mdemaris/32/54639_2.png) [@mdemaris](https://forum.inductiveautomation.com/u/mdemaris)\
**Post date:** [March 5, 2024, 11:45pm UTC](https://forum.inductiveautomation.com/t/perspective-how-to-format-parts-of-a-label-differently/40459/4 "2024-03-05T23:45:32Z")

</div>

So, I am attempting the same thing but this does not appear to work. Did something change over the last few updates?

And, I'm assuming we edit the `label.props.text` here. I've tried the `HTML` and the `**` tags, but Perspective simply displays everything I type.

Thanks,  
Mike

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [March 5, 2024, 11:53pm UTC](https://forum.inductiveautomation.com/t/perspective-how-to-format-parts-of-a-label-differently/40459/5 "2024-03-05T23:53:20Z")

</div>

> [@mdemaris](#):
>
> I'm assuming we edit the `label.props.text` here.

No, we're using the Perspective **Markdown** component.

The Markdown syntax is what's used on the post editor on this forum.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [March 5, 2024, 11:53pm UTC](https://forum.inductiveautomation.com/t/perspective-how-to-format-parts-of-a-label-differently/40459/6 "2024-03-05T23:53:53Z")

</div>

You have to use the Markdown component. Arbitrary HTML elements are only supported in the markdown component if you explicitly enable them on the component. Basic text styling like bold, italic, strikethrough is natively supported using markdown syntax.

---

<div class="post-metadata">

**Author:** ![mdemaris](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mdemaris/32/54639_2.png) [@mdemaris](https://forum.inductiveautomation.com/u/mdemaris)\
**Post date:** [March 5, 2024, 11:57pm UTC](https://forum.inductiveautomation.com/t/perspective-how-to-format-parts-of-a-label-differently/40459/7 "2024-03-05T23:57:27Z")

</div>

I just realized that we are talking about a component, lol.

I was wondering how I would use the Markdown from this site, [Markdown project](https://daringfireball.net/projects/markdown/) and Perl...

Thanks guys!
