> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/2.4/api/csharp/yarn.unity/yarn.unity.lineview/yarn.unity.lineview.palettemarkeduptext.md).

# PaletteMarkedUpText(Markup.MarkupParseResult,MarkupPalette)

Method in [LineView](/2.4/api/csharp/yarn.unity/yarn.unity.lineview.md)

## Summary

Applies the `palette` to the line based on it's markup.

```csharp
public static string PaletteMarkedUpText(Markup.MarkupParseResult line, MarkupPalette palette)
```

## Remarks

This is static so that other dialogue views can reuse this code. While this is simplistic it is useful enough that multiple pieces might well want it.

## Parameters

| Name                                                                                               | Description                                     |
| -------------------------------------------------------------------------------------------------- | ----------------------------------------------- |
| [Yarn.Markup.MarkupParseResult](/2.4/api/csharp/yarn.markup/yarn.markup.markupparseresult.md) line | The parsed marked up line with it's attributes. |
| [Yarn.Unity.MarkupPalette](/2.4/api/csharp/yarn.unity/yarn.unity.markuppalette.md) palette         | The palette mapping attributes to colours.      |

## Returns

A TMP formatted string with the palette markup values injected within.
