glow icon indicating copy to clipboard operation
glow copied to clipboard

please highlight code blocks with the same background style as inline code

Open john-soda opened this issue 4 years ago • 1 comments

Inline code can be recognized very well. Can you do the same background style as default for Code blocks?

I like the syntax highlighting feature when you specify the language for the Code block, but when you have for e.g. bash code like this where nothing is highlighted.

 sudo lvresize -l +100%FREE -r VG/L

it's very difficult to see in a longer document.

john-soda avatar Oct 27 '20 16:10 john-soda

Thank you, we'll always consider improvements in the default styles!

In the meantime, if you prefer a different styling it's really easy to adjust it yourself!

Just download dark.json (or light.json) from https://github.com/charmbracelet/glamour/tree/master/styles and edit it to your liking. You can pass your style file to glow with the -s flag, the config file, or the GLOW_STYLE environment variable.

If you come up with your own cool style, feel free to send a PR to our glamour repository. We'll soon add a gallery of user-contributed styles ❤️

muesli avatar Oct 27 '20 16:10 muesli