http://qs321.pair.com?node_id=19051


in reply to RE: RE:(2) Automatic CODE tags
in thread Automatic CODE tags

Of course, there should be some more logic added, as most code that gets posted, won't compile. That's why it was posted in the first place. But then again, the analyzer should simply lean more towards code than towards text, because a monospaced text is far easier to read than vario-spaced and line-joined code.

I thought of that, but if you are taking it line-by-line (rather than whole post), any program of more than a few lines will have plenty of lines that compile.

$var="bob";
eval's, even if it doesn't do much. That's why I thought the code was so nicely elegant. You don't need much logic.