The Custom Syntax Highlights plugin enables syntax highlighting for files with non-standard extensions by mapping them to a chosen language. Users can configure extension-to-language mappings through settings, allowing files like `.bib`, `.tex`, or `.py` to be rendered as readable, colour-coded code blocks in reading view. The plugin ensures these files open directly in reading mode, offering a clean, formatted display ideal for reviewing source files without editing. It also includes an option to disable highlighting for certain extensions by mapping them to markdown. Markdown files themselves are excluded since they are already handled natively. The plugin draws inspiration from earlier work on custom file extensions but expands its functionality significantly.
Obsidian plugins tagged with #code-rendering. There are 2 plugins in this collection.
- Rank 19 months ago by Outsiders17711
- Rank 215 days ago by Lachlan Harris
The Inline TikZ plugin renders TikZ, CircuiTikZ and PGFPlots diagrams from `tikz` code blocks inside notes, so drawings, circuit schematics and plotted figures can sit beside the text they belong to instead of being managed as separate files. It supports LaTeX package declarations within the block, which allows notes to load extras such as CircuitikZ before the diagram is compiled. Rendered output is stored in a `.tikz-cache/` folder in the vault, and desktop handles compilation and cache generation automatically. That cache can sync through the vault's sync service, including Obsidian Sync. On mobile, diagrams display from the existing cache, so uncached diagrams need to be opened on desktop first.