Skip to content

A plugin to style Obsidian source mode with a monospace font

License

chrishoward-au/sourcemode-styling

Repository files navigation

Source Mode Styling

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.

Usage & Configuration

  1. Open Obsidian and go to Settings → Community plugins → Source Mode Styling.
  2. 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.
  3. Changes apply immediately when you switch to source mode in any markdown file.

License

MIT License © Chris Howard 2025

About

A plugin to style Obsidian source mode with a monospace font

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •