Skip to content

Code block: Set background color beyond end of line #205

Description

@MaxGyver83

When I don't activate syntax highlighting, I can set a background color for code blocks like this:

:highlight markdownCodeBlock ctermbg=240

But this sets the background color only until the end of every line and skips empty lines. Example:

image

Can I somehow achieve that the background color is set from the left to the right window border giving me a rectangle of the defined background color? (Isn't this what you understand by a "block"?) Maybe by setting NonText for this region as well!?

Like this (here faked by appending the right number of spaces at the end of each line):
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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