in reply to Re: Re: Re: Add line numbers to HTML
in thread Add line numbers to HTML

All points that I have also thought of, dang... Basically this was supposed to make reviewing these documents easier for big groups. Any other ideas or different approaches?
  • Comment on Re: Re: Re: Re: Add line numbers to HTML

Replies are listed 'Best First'.
Re: Re: Add line numbers to HTML
by BUU (Prior) on Mar 20, 2004 at 07:25 UTC
    Going off on a wild ass guess here, it sounds like you have a bunch of "reports" embedded in to html. If thats the case, you could possibly embed the report inside a specific tag, like the perlmonks <code></code> tags. Then you only have to number content in side this tag and thats hugely simpler.

    Of course you still have issues as to what exactly constitutes a line. If you do it based on new lines, you might not catch them all because thw browser will automatically wrap paragraphs in certain spots. From here you can basically implement you're own wrapping using text::wrap or something similar from cpan, or perhaps, maybe, do some strange stuff with javascript that might do what you want. But I doubt it.
Re: Re: Re: Re: Re: Add line numbers to HTML
by davido (Cardinal) on Mar 20, 2004 at 06:55 UTC
    Hmm... besides the tools that Hyper-Text Markup Language already offers? ;)

    I haven't seen the documents in question, but maybe it would be appropriate to employ ordered and/or unordered lists to give an "outline" look and feel to the documents. That may not be something that you can easily automate though.


    Dave