src/c2html.c

changeset 60
9f25df78925e
parent 57
eba880c1705c
child 61
47a5fc33590a
child 66
1b12cf799fee
equal deleted inserted replaced
59:643a3ccecd61 60:9f25df78925e
66 lineno++; 66 lineno++;
67 ucx_buffer_clear(line); 67 ucx_buffer_clear(line);
68 68
69 /* write line number */ 69 /* write line number */
70 if (showlineno) { 70 if (showlineno) {
71 ucx_bprintf(line, "<span class=\"c2html-lineno\">" 71 ucx_bprintf(line, "<a class=\"c2html-lineno\" name=\"l%d\" "
72 "<a name=\"l%d\" href=\"#l%d\">%*d </a></span> ", 72 "href=\"#l%d\">%*d </a>",
73 lineno, lineno, lnw, lineno); 73 lineno, lineno, lnw, lineno);
74 } 74 }
75 75
76 /* process code line */ 76 /* process code line */
77 highlighter(sourceline->data, line, hd); 77 highlighter(sourceline->data, line, hd);

mercurial