Gtkhtml2 now has some css color support. lets test it:
A "pre" tag test will follow:
if (html_css_list_get_property (list, "white-space")) {
if (strcmp (html_css_list_get_property (list, "white-space"), "normal") == 0)
new_box->style_white_space = HTML_WHITE_SPACE_NORMAL;
if (strcmp (html_css_list_get_property (list, "white-space"), "pre") == 0)
new_box->style_white_space = HTML_WHITE_SPACE_PRE;
if (strcmp (html_css_list_get_property (list, "white-space"), "nowrap") == 0)
new_box->style_white_space = HTML_WHITE_SPACE_NOWRAP;
}
Please visit http://www.gtkhtml.org/.