artisticat1 / nl-syntax-highlighting

Highlight adjectives, nouns, adverbs, verbs, and conjunctions in Obsidian.md

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Metadata inspired activation

mariomui opened this issue · comments

As a user i would like to only enable syntax highlighting on files of my choosing.
I only want my fiction to be highlighted and not my bullet point style note taking notes.

I propose a setting called:

Metadata Only Per File Activation No [ [|||||]-----] Yes
(NL-SYNTAX-HL: "all")

Only files with the correct metadata field will be highlighted (user opt-in)

(i'm willing to work on this)

commented

I think there is already support for this in a way.

Add frontmatter to documents you wish to have this enabled for,

---
cssclass: nlpsyntax
---

This requires adding a CSS class into settings,

image