15

I can't find the option to enable line numbering. It'd be very helpful!

trusktr
  • 1,249

4 Answers4

6

In case anyone else comes across it and since the answers are quite old:

meld show line number

also works on the Windows installation

Tin Nguyen
  • 264
  • 3
  • 12
4

The previous answer said to go into preferences within Meld. However, I can't see any preferences menu entry, which is consistent with the following post I found that proposed a solution with dconf-editor to toggle line numbers on/off.

Steps:

  1. Open dconf-editor
  2. Navigate to the path org.gnome.meld
  3. Toggle the setting for line numbers:

dconf-editor screenshot

For me, on Ubuntu 18.04, I didn't need to install any additional dependencies.

trent
  • 141
4

I had this problem on Ubuntu and just to spare another unobservant person the time I spent digging around for it I thought I'd add an answer here as well.

If you go into preferences you can see that the option to show line numbers is grayed out but if you hover over it it says to install python-gtksourceview2.

So on ubuntu:

sudo apt-get install python-gtksourceview2

And you should be good to go.

Klepto
  • 214
2

Just believe it needs other dependencies, I saw them on Meld homepage but they are optional. On Fedora, try this

yum install gtksourceview
yum install gnome-python2-gtksourceview
yum install gnome-python2-gnomeprint 
Truong Ha
  • 321