src/highlighter.c

changeset 61
47a5fc33590a
parent 57
eba880c1705c
child 67
5da2cb5aea6b
equal deleted inserted replaced
60:9f25df78925e 61:47a5fc33590a
31 31
32 #include <stdlib.h> 32 #include <stdlib.h>
33 #include <stdio.h> 33 #include <stdio.h>
34 #include <string.h> 34 #include <string.h>
35 #include <ctype.h> 35 #include <ctype.h>
36 #include "ucx/string.h" 36 #include <ucx/string.h>
37 #include "ucx/utils.h" 37 #include <ucx/utils.h>
38 38
39 static void put_htmlescaped(UcxBuffer *dest, char c) { 39 static void put_htmlescaped(UcxBuffer *dest, char c) {
40 if (c == '>') { 40 if (c == '>') {
41 ucx_buffer_puts(dest, "&gt;"); 41 ucx_buffer_puts(dest, "&gt;");
42 } else if (c == '<') { 42 } else if (c == '<') {

mercurial