mProjectsCode / obsidian-shiki-plugin

MIT License
43 stars 6 forks source link

I added PineScript support #25

Open Fred-Vatin opened 2 days ago

Fred-Vatin commented 2 days ago

Hi,

Thanks a lot for this plugin. Now I can add missing languages.

Here is how I added PineScript support:

You’ll need an enhanced theme to highlight some keywords. You can find one in the same repo as above. Or in my VS Code theme here. If importing those files doesn’t work directly, install the needed themes in VS Code then run this command from palette: Generate color theme from current settings. A new file is open in VS Code with the theme. Search for comments and delete them then save the file as .json and NOT .jsonc. It worked for me.

I wonder if this language can be integrated in the plugin so every user can has it by default.

mProjectsCode commented 2 days ago

I wonder if this language can be integrated in the plugin so every user can has it by default.

No. The plugin will only ship with languages that ship with shiki. The plugin is sadly already very big.

Fred-Vatin commented 2 days ago

I made a request to their TextMate repo: https://github.com/shikijs/textmate-grammars-themes/issues/97