Skip to content

[Feature Request] Highlight full heading line, not just # symbols #1955

@fmaida

Description

@fmaida

Describe your feature request

Currently, syntax highlighting for headings applies a distinct color only to the # symbols, while the heading text itself is indistinguishable from regular body text.

However, this makes it hard (at least for me) to visually scan the document structure — especially for H3 and H4, where the font size is close to body text and the ###/#### prefix is small enough to miss.

I understand this is likely an intentional design choice, and I think the current minimal highlighting has its own clean aesthetic. I'm not suggesting changing the default behavior — just asking whether it would be feasible to add an opt-in option in Preferences for users who prefer more visual differentiation between headings and body text.

Proposed solution

Add an option in Preferences → Editor to extend heading coloring to the entire line (both the # symbols and the heading text that follows).

The mockup below shows the idea: heading lines appear in a muted gray, making them immediately distinguishable from body text even at H3/H4 level, without being visually aggressive.

Mockup

Before (current behavior):

Image

After (proposed behavior, with option enabled):

Image

The difference is most visible at H3: the gray color makes the heading line stand out from the surrounding body text, even though the font size is nearly the same.

Platform

  • macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions