pre2html

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/pre2html.git/
Log | Files | Refs

commit ca2884479776120856d6f26a7ec6b27a99f4b1e9
parent 03b3b1922d3be42e074d46b4bbad0f9d313b00c0
Author: Tomas Hlavaty <tom@logand.com>
Date:   Tue,  6 Sep 2011 09:20:02 +0200

quoting added

Diffstat:
Mtext2html.c | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/text2html.c b/text2html.c @@ -91,6 +91,21 @@ int main() { else if(head("END", b, e)) { printf("</div>"); } + else if(head("> ", b, e)) { + printf("<span style=\"color:red\">"); + rest(b, e); + printf("</span>"); + } + else if(head(">> ", b, e)) { + printf("<span style=\"color:green\">"); + rest(b, e); + printf("</span>"); + } + else if(head(">>> ", b, e)) { + printf("<span style=\"color:blue\">"); + rest(b, e); + printf("</span>"); + } else rest(b, e); } puts("</pre>");