Originally Posted by
risby
It seems that the consideration that keywords should be delimited by whitespace was also not in the design.
Have you ever thought of fixing it or would that be a completely bizarre suggestion on my part?
More correctly they should be delimited by word boundaries, i.e. /\b\w+?\b/.
I just use Vim's Convert to HTML and filter that through a Perl script to get BBCode whenever I want to get pretty. E.g.
Code:
1 #include <stdio.h>
2
3 int main(void) {
4 int ch;
5
6 while ((ch = getchar()) != EOF)
7 if (ch == '\n')
8 printf("\n");
9 else
10 printf("%0x ", ch ^ 0xaa);
11 printf("while Fooo if bar \"stuff\" foo break 'bar'....");
12
13 return 0;
14 }
15