Advertisement

02.27.2007 at 03:55AM PST, ID: 22415565
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.8

Perl Function to Insert Line Numbering on Left Side of Formatted Web Page

Asked by Randall-B in Cascading Style Sheets (CSS), Perl Programming Language, CGI Scripting

Tags: , , ,

I have the source code for a web page stored in a variable. The web page is like this: http://216.92.61.99/sample.htm .  
     Now I need a script that will process the content of the variable to keep all the formatting intact (including the ordered-list outline structure and the justified paragraphs) but add line numbering to the left side.
    So the script would output a web page that looks just like this pdf file: http://216.92.61.99/LineNumbering.pdf .  The method would have to be compatible with ordered lists and justified paragraphs, to keep that formatting intact.
    In other words, the web page starts out looking like this: http://216.92.61.99/sample.htm , but ends up looking like this: http://216.92.61.99/LineNumbering.pdf (but in html--not pdf).  How can this be done? (I'm also posting in the css zone, in case css is needed to accomplish this along with perl.)
   Update: I guess something like this web page (http://216.92.61.99/sampleWithNumbers.htm) would be the general idea, but it has these problems:
   A) the line numbers don't exactly match up to the exact same level as the lines of text (the numbers are a tiny bit lower); and
   B)  the text moves (thus invalidating the original line numbers) if the page is viewed more narrowly, such as inside a frame (instead, the relationship of text and line numbers needs to stay constant); and
   C) the script would somehow have to know how many of the line numbers (e.g. 1<br> 2<br> 3<br>, etc.) to add into the left column, based on how much text is in the right column (because the left and right columns are independent of each other).
   Looking for expert guidance . . . .Start Free Trial
[+][-]02.27.2007 at 11:58AM PST, ID: 18619863

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.27.2007 at 02:52PM PST, ID: 18621294

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.27.2007 at 03:00PM PST, ID: 18621355

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.27.2007 at 03:01PM PST, ID: 18621365

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.28.2007 at 12:54AM PST, ID: 18623423

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]02.28.2007 at 06:07AM PST, ID: 18624948

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]02.28.2007 at 06:31AM PST, ID: 18625150

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Cascading Style Sheets (CSS), Perl Programming Language, CGI Scripting
Tags: line, numbers, insert, perl
Sign Up Now!
Solution Provided By: mjcoyne
Participating Experts: 4
Solution Grade: A
 
 
[+][-]02.28.2007 at 08:07AM PST, ID: 18626149

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.28.2007 at 07:04PM PST, ID: 18630825

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.28.2007 at 09:57PM PST, ID: 18631336

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]03.01.2007 at 03:52AM PST, ID: 18632264

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32