hniksic / emacs-htmlize

Convert buffer text and decorations to HTML.
192 stars 45 forks source link

Background color is not handled? #15

Open breadncup opened 6 years ago

breadncup commented 6 years ago

Hi

I'm using this htmlize with highlight2clipboard to copy a region to a clipboard in Mac OSX and it is very useful to present to mail or some other purpose.

However, it doesn't look that htmlize converts a region with the background color.

Is there an option or workaround for it?

hniksic commented 6 years ago

Is there an easy way to reproduce this issue without access to Mac OS?

I've now tried htmlizing a magit buffer, and the background color seems to be respected: image

jcubic commented 6 years ago

If you want to reproduce this issue, You can install MacOS in VirtualBox, here is article how to do this https://techsviewer.com/install-macos-sierra-virtualbox-windows/ , on GNU/Linux is the same you only need to change binay when using command line.

TobiasZawada commented 1 month ago

@breadncup Please run htmlize-buffer on the buffer of question, save the result to a html file and view it with a browser. Is the background coloring missing there?