NNYJ Syntax Highlight
unlistedby nnyj
CM6 syntax decorations for colons, arrows, comments, and brackets in markdown notes.
Updated 2mo agoMIT
obsidian-nnyj-syntax-highlight
CM6 syntax decorations for markdown notes in Obsidian. Highlights colons, arrows, comments, and brackets with distinct colors. Mirrors the NNYJ Syntax Highlight VS Code extension.
Patterns
| Pattern | Example | CSS class |
|---|---|---|
| Line comment | ; note or // note | nnyj-comment |
| Key colon | key: value | nnyj-colon |
| Arrow | --> <-- | nnyj-arrow |
| Parentheses | (text) | nnyj-bracket |
Fenced code blocks and inline code are skipped.
Customization
Override colors in a CSS snippet:
.nnyj-comment { color: #6a9955 !important; }
.nnyj-colon { color: #569cd6 !important; }
.nnyj-arrow { color: #4ec9b0 !important; font-weight: bold; }
.nnyj-bracket { color: #d7ba7d !important; }
Install
Download main.js, styles.css, manifest.json from Releases into .obsidian/plugins/nnyj-syntax-highlight/.
Build
npm install
npm run build
License
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.