Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^5: Adding Line Numbers to the MIT Shakespeare

by marto (Bishop)
on Feb 15, 2013 at 09:42 UTC ( #1018870=note: print w/replies, xml ) Need Help??

in reply to Re^4: Adding Line Numbers to the MIT Shakespeare
in thread Adding Line Numbers to the MIT Shakespeare

perl lear.htm > learout.htm

Adding the style sheet as instructed produced results for me, every 5th line is numbered on the right hand side.

Update: should you wish line numbers to be displayed at a different frequency the part of the code which deals with this is fairly simple to alter.

Update 2: Observations from your youtube video:

  • The output file is larger than the input file. This is good, something has changed.
  • The Shakespeare dir is missing a sub directory. When I saved a play it generated:


<link rel="stylesheet" type="text/css" media="screen" href="lear_files +/shake.css">


C:\>dir lear_files Volume in drive C is XP MP 3.01 Volume Serial Number is CE02-00E2 Directory of C:\lear_files 15/02/2013 09:39 <DIR> . 15/02/2013 09:39 <DIR> .. 15/02/2013 09:39 259 shake.css

If you don't have this css in the location (note that in your file it's looking for /shake.css) it won't render properly on screen. Get this file, save it to your Shakespeare directory.

Update 3:

Replies are listed 'Best First'.
Re^6: Adding Line Numbers to the MIT Shakespeare
by e.loureiro (Initiate) on Feb 15, 2013 at 12:11 UTC

    Now it worked.

    I just had to save "complete webpage" instead of "single HTML".

    Thanks a lot, marto!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018870]
[Happy-the-monk]: holli: Heizungszü ndungselektrik?
[holli]: Happy-the-monk: not quite
[holli]: I just ordered a pair of deans connectors to replace them. probably propriatary

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2017-11-19 14:43 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (281 votes). Check out past polls.