Custom Syntax Highlights

by Outsiders17711
favorite
share
Score: 35/100
Description

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.

Stats
2
stars
25
downloads
0
forks
1
days
1
days
3
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits
Latest Version
3 days ago
Changelog

Changed

  • Moved configuration-related files into config/ directory for cleaner project root.
  • Updated import paths in source code to reflect new configuration file locations.

Fixed

  • Plugin Review: Scoped plugin CSS to prevent conflicts with core Obsidian styles.
  • Plugin Review: Replaced unsafe type casts with instanceof checks for improved stability.
README file from