Fri, 24 May 2013 13:53:52 +0200
extra style for line numbers
src/c2html.c | file | annotate | diff | comparison | revisions | |
test/header.htm | file | annotate | diff | comparison | revisions |
--- a/src/c2html.c Fri May 24 13:35:06 2013 +0200 +++ b/src/c2html.c Fri May 24 13:53:52 2013 +0200 @@ -133,8 +133,8 @@ if (inputfile) { printf("<pre>\n"); for (int i = 0 ; i < inputfile->count ; i++) { - printf("%*d: %s\n", lnw(inputfile->count), - i, inputfile->lines[i]); + printf("<span class=\"c2html-lineno\">%*d:</span> %s\n", + lnw(inputfile->count), i, inputfile->lines[i]); } printf("</pre>\n"); freeinputfilebuffer(inputfile);