> For the complete documentation index, see [llms.txt](https://docs.wisej.com/theme-builder/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wisej.com/theme-builder/user-interface/source-editor.md).

# Source Editor

The **Theme Builder** includes a code editor that you can use when you need to manipulate the theme source code directly. It's particularly useful when you have to copy & paste sections of the theme or you want to apply changes quickly.

![Source Editor](/files/drjIQ4mlQu8ang0bJNX8)

| Element                                                   | Description                                                                                                                                |
| --------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| ![cut](/files/98xsLQTf3jQIkgE3DH5Q)                       | Deletes the selected text and copies it to the clipboard.                                                                                  |
| ![copy](/files/9EUXqpHNb6Q0cWD5uD4p)                      | Copies the selected text to the clipboard.                                                                                                 |
| ![paste](/files/TgXY6r4JP83Zi9n7SPfH)                     | Pastes the text in the clipboard at the current location.                                                                                  |
| ![collapse](/files/Tn2eGiO9kZ7iEat7cfUx)                  | Collapses the outline to the first level. It makes it easier to work with.                                                                 |
| ![expand](/files/8t0MuONv4nQAQMNc6x39)                    | Expands the collapsed outline.                                                                                                             |
| ![undo](/files/km2KrzmKKkRg9ChRl1n2)                      | Reverses the last operation.                                                                                                               |
| ![redo](/files/zbz2cKHp3SzuHUmEQ3XR)                      | Reapplies the previous operation that was reverted using **Undo**.                                                                         |
| ![search](/files/DBhCmk2bWtdrN2Fyo2bu)                    | Opens the Search window. Same as Ctrl-F.                                                                                                   |
| ![replace](/files/wCRC60qAc7gIDByc7wZr)                   | Opens the Search & Replace window.                                                                                                         |
| ![100percent](/files/dy6j2V2ciCmJF3L88Vd4)                | Changes the size of the font in the editor.                                                                                                |
| ![save Preview Script.Image](/files/wtZwL8BUkgrXiMvIhKgW) | Updates the theme tree and the preview panel. You still need to save the theme to the theme file using the save button in the top toolbar. |


---

# 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://docs.wisej.com/theme-builder/user-interface/source-editor.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.
