deathau / cm-editor-syntax-highlight-obsidian

A plugin for [Obsidian](https://obsidian.md) which allows syntax highlighting for code blocks in the editor.
499 stars 37 forks source link

Update meta.js #24

Closed dbarenholz closed 2 years ago

dbarenholz commented 3 years ago

Add dataviewjs to javascript codestyle so we can have nice colors.

I have not tested if this works by building the entire project because it's a pain. I simply changed the release main.js file at line 134-135 (see picture below) with the same change as done here, and it works!

image

Example of it working: image

nkoder commented 3 years ago

Oh, I need it so much ❤️

KjellConnelly commented 3 years ago

I concur

KjellConnelly commented 3 years ago

Oh by the way, I just added a couple more syntax highlighting options for other YAML. In line 229:

{name: "YAML", mimes: ["text/x-yaml", "text/yaml"], mode: "yaml", ext: ["yaml", "yml"], alias: ["yml", "tracker", "dataview"]},

This is for the obsidian tracker plugin, and the regular dataview YAML syntax.