Use code2html
to syntax-highlight and HTML-ify your code before posting to
'Monks, etc. This is a perl one-liner to work with code2html
utilizing Win32::Clipboard to transmogrify the code without writing
files which then would have to be opened, copied, etc.
Please note that this looks all wrong to UNI* gurus who see the quoting through typical shell rules that apply there; Win is different and there's a couple of not-well-known Windoze shell escaping tricks demonstrated in this code, as well.
Also shows how to open a pipe to a process to be written to by Perl, has the ugly kludge of writing a tmp file -- if anyone knows a *Windoze*-workable way to avoid this please comment.
|
|---|