in reply to Add line numbers to HTML
Of course, that might make for some invalid HTML - like if a tag is broken across a newline (Frontpage seems to be fond of doing that).$cnt=1; while (<>) { print sprintf "%5d%s",$cnt++,$_; }
If you're looking for numbers in the HTML after it has been rendered into text, look up HTML::FormatText.
If you want a number pre-prended to every line of the rendered HTML page in a browser, than I doubt you can do it. Particularly once tables get involved. Not because of the limitations of Perl, but because of the nature of HTML rendering.
|
|---|