mProjectsCode / obsidian-shiki-plugin

MIT License
43 stars 6 forks source link

Add language icon #26

Open Fred-Vatin opened 3 days ago

Fred-Vatin commented 3 days ago

Hi,

I love some Code Styler features. I wonder if it would be possible to add them.

Icon and language name in header

There are options to enable one of them or both.

UnwrapFalse

Header instead of tab

An option to display a header instead of tab when there is a title or the above options are enabled.

Language Border Color

An option to add a border color matching the language icon color.

LanguageBorder
mProjectsCode commented 3 days ago

This plugin more or less just repackages expressive code and shiki. Expressive code being responsible for the code block look and shiki for the actual highlighting. Any feature requests regarding highlighting and the look of code blocks should be directed at shiki and expressive code respectively.

mProjectsCode commented 3 days ago

Maybe an expressive code extension exists for this, if so I can consider adding this to this plugin.

Fred-Vatin commented 3 days ago

There is a frame plugin. image. It currently works in Obsidian but it doesn’t auto switch to frame="terminal" according to language as supposed to.

A cssclasses for file scope, could be useful to control them. There is a styleOverrides option to control some default. The rest can be done with CSS snippet for most customization.


For icons or sort of, there is a plugin here.