> 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.

<figure><img src="/files/xQY0GmcPEV3qH3LDKUPt" 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="/files/o9GnSN3PvC8oKvdNbxIn" 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="/files/rWfIKWWM8hINgS7uuLQT" 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**.
