# Markdown Editor change colors for text

**URL:** <https://forum.inductiveautomation.com/t/markdown-editor-change-colors-for-text/34272>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [April 28, 2020, 4:20pm UTC](https://forum.inductiveautomation.com/t/markdown-editor-change-colors-for-text/34272 "2020-04-28T16:20:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmahaffey](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tmahaffey/32/30949_2.png) [@tmahaffey](https://forum.inductiveautomation.com/u/tmahaffey)\
**Post date:** [April 28, 2020, 4:20pm UTC](https://forum.inductiveautomation.com/t/markdown-editor-change-colors-for-text/34272/1 "2020-04-28T16:20:05Z")

</div>

I understand the markdown is to be used when we want the functionality of the label, but with multiple lines. So now I need to learn how to change the color of text because it’s not as simple as binding a tag to the text color sytle parameter like it was with the label.

Here’s my script that runs on a boolean tag status which is bound to the source property of my markdown:

```auto
	if value == True:	
		return "GSHH-030 \n 40% LEL" #Plus some script here that makes the "GSHH-030" font in green and then the 40% LEL red
	else:
		return "Shutdown Alarm" ##Plus some script here that makes the "Shutdown Alarm" font in Red

```

Thanks a bunch for the help.

---

<div class="post-metadata">

**Author:** ![ryanjmclaughlin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryanjmclaughlin/32/4318_2.png) [@ryanjmclaughlin](https://forum.inductiveautomation.com/u/ryanjmclaughlin)\
**Post date:** [April 28, 2020, 5:18pm UTC](https://forum.inductiveautomation.com/t/markdown-editor-change-colors-for-text/34272/2 "2020-04-28T17:18:12Z")

</div>

Is this is Vision or Perspective?

In Vision, You should use HTML, not Markdown

---

<div class="post-metadata">

**Author:** ![tmahaffey](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tmahaffey/32/30949_2.png) [@tmahaffey](https://forum.inductiveautomation.com/u/tmahaffey)\
**Post date:** [April 28, 2020, 6:17pm UTC](https://forum.inductiveautomation.com/t/markdown-editor-change-colors-for-text/34272/3 "2020-04-28T18:17:17Z")

</div>

> [@ryanjmclaughlin](#):
>
> Is this is Vision or Perspective?

Perspective

---

<div class="post-metadata">

**Author:** ![ryanjmclaughlin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryanjmclaughlin/32/4318_2.png) [@ryanjmclaughlin](https://forum.inductiveautomation.com/u/ryanjmclaughlin)\
**Post date:** [April 29, 2020, 12:15pm UTC](https://forum.inductiveautomation.com/t/markdown-editor-change-colors-for-text/34272/4 "2020-04-29T12:15:04Z")

</div>

See this thread, you need to use the Markdown component, not the label

> [@Multiline label in perspective](http://forum.inductiveautomation.com/t/multiline-label-in-perspective/23771/2):
>
> No, there is no multi-line functionality for the Label component; the purpose of the Markdown Component is to act as a multi-line Label, just as the Text Area acts as a multi-line text input.

---

<div class="post-metadata">

**Author:** ![tmahaffey](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tmahaffey/32/30949_2.png) [@tmahaffey](https://forum.inductiveautomation.com/u/tmahaffey)\
**Post date:** [April 29, 2020, 2:54pm UTC](https://forum.inductiveautomation.com/t/markdown-editor-change-colors-for-text/34272/5 "2020-04-29T14:54:14Z")

</div>

> [@ryanjmclaughlin](#):
>
> See this thread, you need to use the Markdown component, not the label

Yes, as the title of my post suggest, I"m trying to figure out how to edit text color for a multiline text in the Markdown Editor. 😀😀

---

<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:** [April 29, 2020, 3:34pm UTC](https://forum.inductiveautomation.com/t/markdown-editor-change-colors-for-text/34272/6 "2020-04-29T15:34:09Z")

</div>

You could do something like the following:

```auto
<p style="color:#00FF00;">Hello</p>

```

 ![23%20AM](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/6aac78d97015e4211700facde82f32553aa87a84.png)

---

<div class="post-metadata">

**Author:** ![tmahaffey](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tmahaffey/32/30949_2.png) [@tmahaffey](https://forum.inductiveautomation.com/u/tmahaffey)\
**Post date:** [April 29, 2020, 8:47pm UTC](https://forum.inductiveautomation.com/t/markdown-editor-change-colors-for-text/34272/7 "2020-04-29T20:47:53Z")

</div>

thank you!
