A simple plugin that highlights code blocks in Obsidian using the powerful Shiki highlighter.
- Accurate Highlighting: Uses Shiki for VS Code-like syntax highlighting.
- Theme Support: Choose from a variety of bundled themes in the settings.
- Source Mode / Live Preview / Reading View: Works seamlessly in all view modes.
Note: This plugin is not yet available in the official Community Plugins list.
- Search for "Codeblock Highlighter" in Obsidian's Community Plugins (once released).
- Enable the plugin in your settings.
- Install the BRAT plugin from the Community Plugins.
- Open the command palette and run
BRAT: Add a beta plugin for testing. - Enter the URL:
https://github.com/kosei28/obsidian-codeblock-highlighter - Click "Add Plugin".
- Enable "Codeblock Highlighter" in the Community Plugins list.
- Theme: Select your preferred syntax highlighting theme.
- Language Mappings: Map language aliases to supported languages (e.g.,
dataviewjs->javascript).
To build the plugin from source:
bun install
bun run dev