Quarto
Quarto support for Zed
Languages
How to install
With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.
You can also open the Extensions panel in the app and search for Quarto. The extension's id is quarto.
Don't have Forge Super yet? Download it here.
README
From the extension's repository, written by its authors and not by Mentenaz. See the source.
Quarto for Zed
Quarto support for the Zed editor.
Features
- Full syntax highlighting for
.qmdfiles- Headers, lists, block quotes, thematic breaks
- Bold, italic, strikethrough, inline code
- Links and images
- Tables
- YAML front matter (with YAML syntax highlighting)
- Code block injections for:
- R (
{r}) - Python (
{python}) - Julia (
{julia}) - Observable JS (
{ojs}) - Mermaid diagrams (
{mermaid}) - Graphviz/Dot (
{dot}) - LaTeX/TeX (
{latex},{tex}) - Standard markdown code blocks (
python,r, etc.)
- R (
- Outline view for document navigation (headings)
- Code snippets for common Quarto patterns
Installation
From Zed Extensions (coming soon)
Search for "Quarto" in Zed's extension marketplace.
Manual Installation (Development)
- Clone this repository:
git clone https://github.com/prefrontal-systems/zed-quarto-plugin.git - Open Zed
- Open the Command Palette (
Cmd+Shift+P) - Search for "zed: install dev extension"
- Select the
zed-quarto-plugindirectory
Snippets
The extension includes snippets for common Quarto patterns:
r- R code chunkpy- Python code chunknote- Callout note blockyaml- YAML front matter template
Render and Preview
To preview your Quarto document:
- Open the integrated terminal in Zed (
Ctrl+~orCmd+J) - Run:
quarto preview your-document.qmd - Open the preview URL in your browser
Project Structure
zed-quarto-plugin/
├── extension.toml # Extension metadata
├── languages/
│ ├── quarto/ # Main Quarto language
│ │ ├── config.toml # Language configuration
│ │ ├── highlights.scm # Syntax highlighting queries
│ │ ├── injections.scm # Language injection queries
│ │ └── outline.scm # Outline/symbol queries
│ └── markdown-inline/ # Inline markdown (bold, italic, etc.)
│ ├── config.toml
│ └── highlights.scm
├── grammars/ # Tree-sitter grammar source
└── snippets/
└── quarto.json # Code snippets
Contributing
Contributions are welcome! Please feel free to submit issues or pull requests.
License
MIT
Credits
- Uses tree-sitter-markdown grammar
- Built by Prefrontal Systems