> For the complete documentation index, see [llms.txt](https://themedocs.zenit.design/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://themedocs.zenit.design/content/erlebniswelten/bloecke/elemente/code.md).

# Code

> Feature der Pro Version

Seit Shopware 6.5 wird Code in den HTML-Elementen bereinigt - ein sogenannter "Sanitizer" filtert die meisten Code-Inhalte. Mit dem Code Element kann individuelle Code in der Erlebniswelt platziert werden, ohne dass dieser bereinigt wird.&#x20;

<figure><img src="/files/vkE38rz4bWlf4sLZL4jP" alt=""><figcaption></figcaption></figure>

Das **Code Element (1)** befindet sich in der Liste der auswählbaren Elemente des Themes. Bereits nach dem Platzieren zeigt es Demo-Inhalte zur Beschreibung der Verwendung an. \
In der Vorschau des Elementes im Editor werden Dir Teile Deines geschriebenen **Codes (2, 3, 4)** angezeigt, sodass Du einen Überblick bei der Verwendung mehrerer Code-Elemente behältsts.

## Einstellungen

<figure><img src="/files/EIXxMOIRISfzltPM409Q" alt=""><figcaption></figcaption></figure>

In der Konfiguration des Elementes findest Du für jeden Code das passende Feld, aufgeteilt in einen Tab für **HTML und Twig (1)**, Styling im **CSS Tab (2)** und Javascript im **JS Tab (3)**. Dadurch behältst Du den vollen Überblick.

{% hint style="info" %}
Entferne den Beispiel-Code aus den Tabs.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://themedocs.zenit.design/content/erlebniswelten/bloecke/elemente/code.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
