mayurankv / Obsidian-Code-Styler

A plugin for Obsidian.md for styling codeblocks and inline code
Other
235 stars 6 forks source link

Feature Request: Vue.js syntax highlighting #267

Open ZhaoQi99 opened 3 months ago

ZhaoQi99 commented 3 months ago

Summary

Is there any way to support Vue.js syntax highlighting? I have successfully added Vue.js icon locally by editing LANGUAGES, but I cannot get syntax highlighting to work. https://github.com/mayurankv/Obsidian-Code-Styler/blob/99f7ea21250f7465585dd526013f6e918d167bc2/src/Settings.ts#L1409

Btw, I also tried to edit the MODES, but it still didn't work. https://github.com/mayurankv/Obsidian-Code-Styler/blob/99f7ea21250f7465585dd526013f6e918d167bc2/src/SyntaxHighlighting.ts#L1-L4 And I didn't find Vue.js at https://prismjs.com/. Is it because prismjs does not support it? https://github.com/PrismJS/prism/issues/1665

Additionally,

Basic example

image

Motivation

support more language

Existing Requests?

None

alexinea commented 1 week ago

I'm also looking forward to supporting Vue's syntax highlighting.