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
In reply to Re^3: Recognizing Perl in text
by LanX
in thread Recognizing Perl in text
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |