# Using existing span highlighter with custom template

**URL:** <https://support.prodi.gy/t/using-existing-span-highlighter-with-custom-template/1163>\
**Category:** Uncategorized\
**Tags:** usage, front-end\
**Created:** [January 29, 2019, 1:30am UTC](https://support.prodi.gy/t/using-existing-span-highlighter-with-custom-template/1163 "2019-01-29T01:30:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![taavi](https://avatars.discourse-cdn.com/v4/letter/t/d78d45/32.png) [@taavi](https://support.prodi.gy/u/taavi)\
**Post date:** [January 29, 2019, 1:30am UTC](https://support.prodi.gy/t/using-existing-span-highlighter-with-custom-template/1163/1 "2019-01-29T01:30:23Z")

</div>

I was wondering if there’s an easy way to still get span highlights with a custom template? Essentially I’d like to show:

```
**Title with some styling**

Some text here. Some text about <mark>thing</mark> here.

```

Using it to classify text paragraphs which are sometimes longish and it’s really helpful to have key terms highlighted. I’m currently using the NER view, but it doesn’t have a title line.

---

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [January 29, 2019, 7:30am UTC](https://support.prodi.gy/t/using-existing-span-highlighter-with-custom-template/1163/2 "2019-01-29T07:30:38Z")

</div>

> [@taavi](#):
>
> I’m currently using the NER view, but it doesn’t have a title line.

You should be able to add a title via the `"label"` property – for example:

```json
{"text": "Some text", "spans": [...], "label": "Some title"}

```

This will show the task just like the classification view with a title on top, and the highlighted spans in the main body text. If you want to include more subtle meta information, you can also use the `"meta"` key, which takes a dictionary – for example, `"meta": {"page_number": 123}`. This will then be displayed in the bottom right corner of the annotation card.

---

<div class="post-metadata">

**Author:** ![taavi](https://avatars.discourse-cdn.com/v4/letter/t/d78d45/32.png) [@taavi](https://support.prodi.gy/u/taavi)\
**Post date:** [January 29, 2019, 6:57pm UTC](https://support.prodi.gy/t/using-existing-span-highlighter-with-custom-template/1163/3 "2019-01-29T18:57:55Z")

</div>

Could it be that functionality depends on also using the NER model? I added the label to metadata, but it’s not being shown. See screenshot.

 ![02%20AM](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/1X/6e40aa7a28933c017886c38c5cc7b22d6b78c2d1.png)
