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

Could Inline Highlighting use the same Theme which select in the setting?

Open Tback1 opened this issue 1 year ago • 2 comments

Could Inline Highlighting use the same Theme which select in the setting?

The effect is very abrupt

image

Tback1 avatar Nov 06 '24 04:11 Tback1

They are using the same theme. However if you select a custom theme in the plugin settings, the background color of that theme is applied to code blocks and not inline code blocks.

mProjectsCode avatar Nov 06 '24 10:11 mProjectsCode

However if you select a custom theme in the plugin settings, the background color of that theme is applied to code blocks and not inline code blocks.

So the custom will not effect on the inline code block, it just mean "different theme"

Tback1 avatar Nov 07 '24 17:11 Tback1

The plugin now allows you to select two themes—one for when Obsidian is in dark mode, and one for when Obsidian is in light mode. As long as you don't use a dark code block theme with a light Obsidian theme (or the other way around), this should no longer be an issue.

mProjectsCode avatar Sep 02 '25 14:09 mProjectsCode

Is it possible to have a dark code theme apply to an inline code block when using light mode? I was running into this issue when trying to print my files, since Obsidian switches to light mode when exporting to PDF. It is annoying to have the inline code blocks unreadable in the pdf, when the multiline code blocks work just fine.

SpacePiggy17 avatar Oct 18 '25 01:10 SpacePiggy17