in reply to Re^2: Recognizing Perl in text
in thread Recognizing Perl in text

> Compiled man pages, or man translated to HTML, LaTeX or PDF would not have the POD markers in it any more

Multiline code in POD has only one markup: indentation!

Generated man pages mirror this.

HTML and PDF additionally flag code with a dedicated style/font.

So style and indentation are IMHO the by far best criteria for your scoring technique.

And LaTeX ...You want to parse LaTeX-Code? Seriously?

Cheers Rolf