From c99b1cc2cc1706e3fd9992762bfb7657cca20be5 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Mon, 26 Dec 2005 19:56:07 +0100 Subject: [PATCH] Render content of CDATA sections with orange2 (in lack of something better) --- contrib/user.css | 1 + src/document/dom/renderer.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/user.css b/contrib/user.css index 7e5cbe39..d1bf0e88 100644 --- a/contrib/user.css +++ b/contrib/user.css @@ -46,3 +46,4 @@ entity-reference { color: red } proc-instruction { color: red } attribute { color: magenta } comment { color: aqua } +cdata-section { color: orange2 } diff --git a/src/document/dom/renderer.c b/src/document/dom/renderer.c index 8c04378e..7235a6c5 100644 --- a/src/document/dom/renderer.c +++ b/src/document/dom/renderer.c @@ -127,7 +127,8 @@ init_dom_renderer(struct dom_renderer *renderer, struct document *document, "entity-reference { color: red } " "proc-instruction { color: red } " "attribute { color: magenta } " - "comment { color: aqua } "; + "comment { color: aqua } " + "cdata-section { color: orange2 } "; unsigned char *styles = (unsigned char *) default_colors; i_want_struct_module_for_dom = 1;