Source Mode Styling lets you customize the appearance of the Obsidan source mode editor with a monospace font to render content in the "raw" look that is familiar to users of text editors. It still maintains some very basic formating, including bold and italics.
By default, Obisidan's source mode shows the markdown syntax but maintains most of the formatting and styling. The Source Mode Styling plugin lets you override this, with settings for your preferred monospace font, and lets you tweak the font size, font weight, line height, heading colour, and background colour.
- Open Obsidian and go to Settings → Community plugins → Source Mode Styling.
- Configure the following options:
- Enable source mode styling: Toggle the feature on or off.
- Monospace font: Choose from detected available fonts or use the theme default.
- Font size: Set the font size (9–20 px) or use the theme default.
- Font weight: Choose theme default, normal, light, semi-bold, or a custom numeric value (100–900).
- Line height: Set the line height (1.0–2.5) or use the theme default.
- Heading colour: Set a custom colour or use the theme default.
- Background colour: Set a custom colour or use the theme default.
- Changes apply immediately when you switch to source mode in any markdown file.
MIT License © Chris Howard 2025