How can I print the line numbers of gedit?

I want to print the line numbers along with c source-code in the text editor "Gedit". I am tired to look all day at the display.

Thank you for any time or effort.


Solution 1:

  1. Open the Print... menu from the File tab

    screenshoot_1

  2. Select the 3º tab called "Text Editor"

  3. Click the second option "Print line numbers" so this checkbox remains enabled

    screenshoot_2

Now you can choice Print Preview and you will see the line numbers before print it:

result

Solution 2:

In the edit menu click on preferences and in the in the first tab "View" tick the check box labeled display line numbers