0

For example, I want to print my source code from line 526 - 561 and I also want the line numbers to appear.

durron597
  • 31,968
  • 17
  • 99
  • 158

2 Answers2

0

According to this:

Is there a way to copy code from eclipse including ine numbers

I would say you just have your line numbers displayed in eclipse (see above question on howto) then mark lines 526-661 and press Ctrl+P, select "Print Selection" and see what happens. (I currently realy dont have ANY possibility to test it myself, sorry)

Community
  • 1
  • 1
JBA
  • 2,769
  • 5
  • 24
  • 40
0

For a short snippet of code like the OP's 36 lines, I'll usually just copy the code from Eclipse, paste it into Geany (which runs in Linux, OSX, and Windows), and print it from there. With Geany set to show and print line numbers, of course.

David Yockey
  • 595
  • 3
  • 11