Originally Posted by
dwks
There are three code colourers written by members of this board
Yes, thanks. I tried them all:
CPP code tagger
Code:
#include <stdio.h>
int main(void) {
int ch;
while ((ch = getchar()) != EOF)
if (ch == '\n')
printf("\n");
else
printf("%0x ", ch ^ 0xaa);
return 0;
}
Color Coder V 2.0
Code:
#include <stdio.h>
int main(void) {
int ch;
while ((ch = getchar()) != EOF)
if (ch == '\n')
printf("\n");
else
printf("%0x ", ch ^ 0xaa);
return 0;
}
codeform
Code:
#include <stdio.h>
int main(void) {
int ch;
while ((ch = getchar()) != EOF)
if (ch == '\n')
printf("\n");
else
printf("%0x ", ch ^ 0xaa);
return 0;
}
And I do believe that codeform does have that little something extra; plus, with a little adjustment, I can use it on my Linux systems. Thanks dwks.
Adjustment:
- I removed the forward slash from the definition of the default dat file as forward slash is the Windows-specific directory path separator
Note:
- Neither Linux nor Windows liked the numbercol definition in codeform_cb_cpp.dat (the equal symbol before darkblue needs a backslash escape character)
[numbercol]
\[color=darkblue]=[/color]
It says
Originally Posted by
codeform
Syntax error in data file "codeform.dat" on line 112:
[numbercol]'s data must have 2 parts (it has 3)