> For the complete documentation index, see [llms.txt](https://docs.snackprompt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.snackprompt.com/glossary/snack-prompt-concepts/what-is-a-elemental/document-snippet-text-editor.md).

# Document / Snippet (Text Editor)

The Text Editor is a rich text workspace designed for writing structured, readable, and visually organized content inside Snack Prompt.

The **Text Editor** is a rich text workspace designed for writing **structured, readable, and visually organized content** inside Snack Prompt.

<figure><img src="https://2673393957-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRYtWWn2E0u52ac3JHNVz%2Fuploads%2FB23vqXjkChtq3eI09RwQ%2Fimage.png?alt=media&amp;token=7868808d-79de-4272-8750-500787324ce6" alt=""><figcaption></figcaption></figure>

Unlike the Prompt Editor, the Text Editor does **not execute instructions** or generate dynamic forms. Its purpose is to **author content**, not logic.

It is optimized for documentation, descriptions, long-form text, and human-readable outputs.

### What is it?

The Text Editor is a **WYSIWYG (What You See Is What You Get)** editor that allows users to format text with headings, lists, quotes, emphasis, and highlights.

It focuses on:

* Readability
* Structure
* Visual hierarchy

### Core Capabilities

#### Headings

The editor supports multiple heading levels to create clear structure:

* Header 1 (Title)
* Header 2 (Section)
* Header 3 (Subsection)

Headings automatically appear in the **Document Outline**, enabling fast navigation.

#### Lists

The editor supports both list types:

* Bullet lists
* Numbered lists

Lists are essential for:

* Scannability
* Step-by-step instructions
* Feature breakdowns

***

#### Quotes

Blockquotes allow you to highlight:

* Important notes
* Warnings
* Emphasized statements

They visually separate contextual information from the main content.

***

#### Text Formatting

Supported inline formatting includes:

* **Bold**
* *Italic*
* ~~Strikethrough~~
* Highlight

These tools help emphasize key information without breaking flow.

### Reference

#### **Formatting Toolbar**

<figure><img src="https://2673393957-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRYtWWn2E0u52ac3JHNVz%2Fuploads%2FfRZvlq6x4b4B9mJvdik1%2Fimage.png?alt=media&amp;token=6477cbd4-d395-42a2-a079-942b0bbd127a" alt=""><figcaption><p>Toolbar</p></figcaption></figure>

The toolbar provides quick access to:

* Headings
* Bold / Italic / Strikethrough
* Lists (bullet and numeric)
* Quotes
* Highlight
* Inline code and links

All formatting is preserved when content is displayed or reused.

#### Document Outline

<figure><img src="https://2673393957-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRYtWWn2E0u52ac3JHNVz%2Fuploads%2FZzaFHBP94sWk8faAY092%2Fezgif-290a78fdb61689dc.gif?alt=media&amp;token=64349e93-6c15-482c-8e56-30ca4e981455" alt=""><figcaption></figcaption></figure>

The left-side outline:

* Reflects heading structure
* Updates automatically
* Allows fast section navigation

This is especially useful for long documents.

### Rules

* Use headings to define structure
* Do not use the Text Editor for executable prompts

### Do & Don’t

#### Do

* Use for documentation and explanations
* Structure content with headings
* Optimize for scanning

#### Don’t

* Use dynamic placeholders (`#`)
* Embed execution logic
* Treat it as a prompt field

***

### Practical Example

**Use cases:**

* Documentation pages
* Elements descriptions&#x20;
* Long-form explanations
* Context for AI

The Text Editor ensures content is **clear, readable, and maintainable**.
