Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MaxGyver83 opened this issue May 12, 2023 · 0 comments
Open

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

MaxGyver83 opened this issue May 12, 2023 · 0 comments

Comments

@MaxGyver83
Copy link

MaxGyver83 commented May 12, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant