---
url: /editor.md
---
# Editor Configuration

## PhpStorm

### Syntax Highlighting

In *Settings*, under the *File Types* section, configure Twig syntax highlighting for *.tpl* file extensions.

![](img/phpstorm/syntax.png)

### Plugin

A PhpStorm plugin is available that provides autocompletion for available variables and validates template syntax. After installation, no further configuration is needed — it works automatically for Simplia templates.

![](img/phpstorm/plugin.png)

#### Plugin Installation

In Settings, under the Plugins section, click the gear icon and select *Manage Plugin Repositories*.

![](img/phpstorm/plugin-1.png)

Add the URL `https://phpstorm.simplia.cz`

![](img/phpstorm/plugin-2.png)

Search for and install the `Symfony Support` and `Simplia templates` plugins. After installing the plugins, restart PhpStorm.

![](img/phpstorm/plugin-3.png)

Autocompletion will be automatically available in templates of e-shops using the new syntax. If an update is released (for example, when a new object is added to templates), PhpStorm will offer it automatically.

![](img/phpstorm/plugin-4.png)

### Syntax Validation

#### Configuring Inspections

In the menu, select *Code* > *Inspect Code*:

![](img/phpstorm/inspection/code-inspect-1.png)

Create a new profile by clicking the three-dot button *...*:

![](img/phpstorm/inspection/code-inspect-2.png)

Download the Simplia.xml inspection definitions file and import it into PhpStorm — select the downloaded file and click *OK*.

![](img/phpstorm/inspection/code-inspect-3.png)

#### Running Inspections

In the menu, select *Code* > *Inspect Code*:

![](img/phpstorm/inspection/code-inspect-1.png)

![](img/phpstorm/inspection/code-inspect-4.png)

![](img/phpstorm/inspection/code-inspect-5.png)

## AI Agents and Machine Processing

For AI agents and automated tools, the documentation site provides machine-readable resources:

* **[llms.txt](/llms.txt)** / **[llms-full.txt](/llms-full.txt)** — the entire template documentation in a text format optimized for LLM processing. Suitable for loading the full documentation context at once.
