-
Notifications
You must be signed in to change notification settings - Fork 8
Changing default background and font colors in HTML ? #11
Comments
You can define a path to a CSS stylesheet using -r to change the background color. The basic ANSI color set can be adjusted with a color map file (--map option).
|
It would be cool if the html parser would create CSS classes for each color instead of setting the color directly in the spans. This way you could use the CSS alone to change the colors without having to rely on the mapfile. This would also allow you to not have to regenerate the html file every time you change the colors as you can simply update the CSS and reload the html. e.g. bright red color => brightRed class, normal blue color => normalBlue class
then
instead of
Or perhaps use generic class names .color0.. to .colorF, since .brightRed name can become semantically incorrect if you define it as #00ff00 (which is green) :) |
That is a good point. I'll think about how to deal with 256/truecolor modes. As normally only a few color combinations would appear in a text, ansifilter could enumerate css class names while processing and output a separate CSS file at the end. |
Is there a way to set the background and text colors to other values? I wanted my html pages to be created with light text on a dark background. Perhaps a good extension would be to allow the command line parameters to set these colors or even better to allow to use an external CSS file that can be passed to the app via command line argument.
The text was updated successfully, but these errors were encountered: