29

I am using the lightweight SciTE Text editor and I like it very much.

I would like to configure it in order to see the line numbers displayed when I open it. I don't want to check the "View\Line Number" menu every time.

I think that I can do it but I don't see the entry in my global options file. Does anybody know how to do it?

Nakilon
  • 34,866
  • 14
  • 107
  • 142
luc
  • 41,928
  • 25
  • 127
  • 172

3 Answers3

32

Try this in SciTEGlobal.properties:

 # Sizes and visibility in edit pane
line.margin.visible=1
line.margin.width=5
Treb
  • 19,903
  • 7
  • 54
  • 87
21
# Sizes and visibility in edit pane
line.margin.visible=1
line.margin.width=2+   # + will expand if needed
Charles Goodwin
  • 6,402
  • 3
  • 34
  • 63
fri.K
  • 211
  • 2
  • 2
2

Having seen the other answers i would say it is more "clean" to save to User options file, because it is a user setting and you might also transfer this setting together with your home directory f.e. when you migrate or copy it for other reason. Also in this cases your scite would still behave like YOU (and possibly other users) expect.

"Go to menu 'Options' and there select 'Open User Options File and add this line to User options file ".SciTEUser.properties":

line.margin.visible=1
line.margin.width=0+   # + will expand if needed

additional comment: for my taste the font of scite in linux is too small and therefore i also added these lines to .SciTEUser.properties:

magnification=1
output.magnification=1
Josef Klotzner
  • 182
  • 1
  • 6
  • Thanks. IMHO, your answer would be perfect if you add this info: "Go to menu 'Options' and there select 'Open User Options File'" – lanenok Apr 02 '23 at 08:34
  • Thank you very much - i added your hint - sometimes one is blind to see that there is something missing, when explaining to others, because for oneself everything is clear without any further description – Josef Klotzner Apr 03 '23 at 15:34