# Syntax Highlighting for yaml files

**URL:** <https://community.openhab.org/t/syntax-highlighting-for-yaml-files/167931>\
**Category:** 3rd Party\
**Tags:** syntax, yaml\
**Created:** [January 10, 2026, 4:54am UTC](https://community.openhab.org/t/syntax-highlighting-for-yaml-files/167931 "2026-01-10T04:54:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Spaceman\_Spiff](https://community.openhab.org/user_avatar/community.openhab.org/spaceman_spiff/32/56883_2.png) [@Spaceman\_Spiff](https://community.openhab.org/u/Spaceman_Spiff)\
**Post date:** [January 10, 2026, 5:00am UTC](https://community.openhab.org/t/syntax-highlighting-for-yaml-files/167931/2 "2026-01-10T05:00:50Z")

</div>

# PyCharm (or any Jetbrains IDE)

There are two ways: selecting the highlighting in the IDE or linking the schema directly from the config file

## Select it for a file

Open the yml file. In the bottom right click on this box

![grafik](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/6/2/62221439fb5162a3d376bccc5846d0ce859e98b7.png)

Start typing “openhab” and select from list

 ![grafik](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/7/1/712dec97f5149d849c27d3c5df80baa1944dae94.png)

## Automatically link the file to the schema

At the top of the file enter

```auto
# $schema: https://www.schemastore.org/openhab-5.1.json

```

That way the file will always and automatically validated against the schema

 ![grafik](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/0/f/0fa43b61e648ee1804d509f7e9d7939de0beef50.png)

---

_[View the full topic](https://community.openhab.org/t/syntax-highlighting-for-yaml-files/167931)._
