in reply to link html to a specific line in a txt doc

Maybe you would like to set up some sort of HTML Template mechanism, whereby you have a static, one-size-fits-all HTML wrapper that can be used to bracket any particular plain-text file; the text file would need just a couple very simple alterations, if the template went something like this:
<HTML> <BODY> <PRE> # text file goes here </PRE> </BODY> </HTML>
Now, the only things you have to worry about are:
  1. Convert any angle brackets within the text file to entity references, &lt; and &gt;, and
  2. Put the necessary anchor tags at the lines of interest.

(and you could number the lines, if that's not done yet and seems helpful to the reader).