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

Overriding / editing existing languages #47

Open im-richard opened 2 years ago

im-richard commented 2 years ago

Is their a known method for editing existing languages?

In short; I modified the code so that bash could recognize ; as a comment and the program itself completely ignores it and only continues to recognize #

I then created a bogus language that isn't real (just to have a new unique language name); added the same rules, and it worked fine.

I then decided to decode the typescript source map (base64) and see that the same language definitions exist there too; and it seems like those are overriding the changes to the decoded tables. The only way to get a successful result is by creating an entirely unique language name.

Thanks