Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

TOON Syntax Highlight

Sebastián SalasSebastián Salas14 downloads

Syntax highlighting for TOON (Token-Oriented Object Notation) in fenced code blocks.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates2

Syntax highlighting for TOON (Token-Oriented Object Notation) in fenced code blocks, so tabular dumps stay readable inside your notes.

Colors come from Obsidian's own --code-* variables, so the highlighting adapts to whatever theme you use, in both light and dark mode.

Usage

Tag a fenced code block with toon:

```toon
# inventory snapshot
warehouse: north
items[3]{sku,name,qty,price,note}:
  1001,Keyboard,42,29.99,null
  1002,Monitor,7,189.50,"Restock by: 2025-06-30"
  1003,Mouse,0,12.00,null
```

Works in Reading View and Live Preview. Source mode shows plain text, since it is a rendered-markdown post processor and Source mode renders no HTML.

What gets highlighted

Token Matches Obsidian variable
Key table name and header fields --code-property
String double-quoted text --code-string
Number integers and decimals, incl. exponents --code-value
Keyword null, true, false --code-keyword
Punctuation [ ] { } , : --code-punctuation
Comment lines starting with # --code-comment
Plain everything else --code-normal

Quoted values are parsed properly: a colon inside "Restock by: 2025-06-30" does not turn the row into a key: value line, and "" / \" escapes are respected.

Settings

Setting Default Effect
Wrap long lines Off Wraps block content instead of scrolling horizontally

Wrapping uses overflow-wrap: anywhere because TOON rows are comma-separated with no spaces — plain pre-wrap finds no break opportunity in a line of UUIDs and timestamps.

Installation

From the community plugin store

Settings → Community plugins → Browse → search for TOON Syntax Highlight.

Manual

  1. Download main.js, manifest.json and styles.css from the latest release.
  2. Put them in <vault>/.obsidian/plugins/toon-syntax/.
  3. Reload Obsidian and enable the plugin in Settings → Community plugins.

Development

Plain JavaScript, no build step. Clone into your vault's plugins folder and reload:

git clone https://github.com/sebasalas/obsidian-toon-syntax.git \
  <vault>/.obsidian/plugins/toon-syntax

Releases are automated: push a tag matching the manifest.json version and the workflow in .github/workflows/release.yml drafts a release with the three required assets.

git tag 1.0.1 && git push origin 1.0.1

License

MIT

HealthExcellent
ReviewPassed
About
Highlight TOON (Token-Oriented Object Notation) in fenced code blocks using Obsidian's --code-* theme colors so tabular dumps stay readable in both light and dark themes. Render in Reading View and Live Preview with correct parsing of strings, numbers, booleans, nulls and comments; Source mode stays plain text.
SyntaxCode
Details
Current version
1.0.1
Last updated
3 days ago
Created
3 days ago
Updates
2 releases
Downloads
14
Compatible with
Obsidian 1.0.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
Sebastián SalasSebastián Salassebasalas
GitHubsebasalas
  1. Community
  2. Plugins
  3. Syntax
  4. TOON Syntax Highlight

Related plugins

VSCode Editor

Edit Code Files like VSCode.

Shiki Highlighter

Highlight code blocks with Shiki.

Argument Map with Argdown

Write Argdown code blocks and view the maps in reading mode.

Code Editor

Edit non-markdown text files (code, config, data) directly with syntax highlighting, line numbers, and word wrap.

Strudel REPL

Live-coding music environment — Strudel REPL integrated into your vault.

Ace Code Editor

An enhanced code editor using Ace editor, providing syntax highlighting, code folding, and other advanced editing features.

Code Suite

Execute code inside your notes: Shiki syntax highlighting with 65+ themes, live streaming output, inline Matplotlib and Plotly graphs, shared variables, and styled HTML and PDF export with outputs.

CodeBlock Language Detector

Automatically detects and adds language tags to code blocks without specified language for proper syntax highlighting.

Masking as MD

Open non-markdown files (.py, .html, .txt, .js, .css, etc.) as editable text documents directly in Obsidian.

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.