Ubuntu – How to print the line numbers of gedit

geditprintingsource code

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.

Best Answer

  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

Related Question