NNYJ Syntax Highlight

unlisted

by nnyj

CM6 syntax decorations for colons, arrows, comments, and brackets in markdown notes.

Updated 2mo agoMIT
View on GitHub

obsidian-nnyj-syntax-highlight

Stars Downloads Latest Release Build

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

PatternExampleCSS class
Line comment; note or // notennyj-comment
Key colonkey: valuennyj-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

MIT

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.