obsidian-shiki-plugin icon indicating copy to clipboard operation
obsidian-shiki-plugin copied to clipboard

Add language icon

Open Fred-Vatin opened this issue 1 year ago • 4 comments

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

Fred-Vatin avatar Oct 16 '24 15:10 Fred-Vatin

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 avatar Oct 16 '24 15:10 mProjectsCode

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

mProjectsCode avatar Oct 16 '24 15:10 mProjectsCode

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.

Fred-Vatin avatar Oct 16 '24 17:10 Fred-Vatin

Hi @mProjectsCode have you seen this one https://github.com/expressive-code/expressive-code/issues/153#issuecomment-2282218684

lalvarezt avatar Apr 29 '25 17:04 lalvarezt