Malcolm McLean said:
It is an ANSI C program that is a tool for documenting other ANSI C source,
so it is quite hard to argue that the post is not topical.
It isn't hard to so argue at all.
You can't do colour in standard C. Period. Every use of colour
in C requires a system extension. That system extension might be
writing directly to system memory, or might be a call to an OS
library, or might be a call to a library that tries hard to be
portable, or might be some kind of external program that does one
of these things, but you can't get away from the system extension
for the task.
The fact that there are common programs that take text input
and produce coloured output is of no more importance to this matter
than the fact that there are common MS Windows assemblers that
take text input and produce whatever weird and wonderful output
that one might desire.
If we are to are to be consistent and we tell people, "MS Windows
assembly and what you can do with it is off-topic here", then we
must also tell people that "HTML and what you can do with it is
off-topic here."
Can you produce coloured text within HTML? "Yes, it's just a text
format" is, as far as clc is concerned, an off-topic answer: the clc
answer is, "We don't know, check an HTML newsgroup!".
If the poster goes away and comes back and says, 'I have a text
processing-task that involves [...] and changing this kind of
string to the literal "<push hue red 0.8>" followed by the string
followed by "<pop hue red>"', and doesn't implicitly make us
responsible for this not happening to produce the colour change
desired when the output is run through the off-topic external tool,
then that is -closer- to topicality, but still likely in the
realm of "That's an algorithm question" or "that's a parsing question".
Taking in text, whirling it around, and producing output text:
possibly topical. But as soon as the requirement is added that the
result has to have a particular effect in a system extension
(e.g., that various words actually have to -be- colorized in a browser),
it's off-topic; we have to stop no further than "this will produce
the text output you specified; what some other program does with
this is out of our hands."