I need to add line numbering to the left side of html pages generated by PHP from HTML source code stored in a variable.
Unlike the solution at http:Q_22414012.html
, it needs to be done without using tables. See a sample at: http://126.96.36.199/document.htm
(which does not use tables, but unfortunately it probably lacks the ability to have right-justified margins).
The solution needs to be compatible with justified right margin, and outline structure with ordered lists.
What I'm trying to duplicate is what you see in this pdf file, created in Word: http://188.8.131.52/LineNumbering.pdf
. But it would be generated on-the-fly by PHP by adding line numbering to the html source code stored in a variable, such as the source code of the following page, which is justified and has ordered-list structure: http://184.108.40.206/sample.htm
). I realize HTML itself may impose some limitations on what I want, but I hope we can work around them somehow.