Enable line-numbers for text entered - How to?

Hi,

I’m running ver. 1.59 and using SciTE primarily for writing Ruby
scripts. I’d like to enable line numbers so that I can more easily
locate lines specified in Ruby diagnostics.

BTW, do later versions offer any important significant benefits for
average Ruby programmers?

TIA,
Richard

I’m not sure about line numbers in SciTE, but you should definitely
upgrade to a more recent version of Ruby. There are significant
improvements in the standard libraries and interpreter, so I would
recommend upgrading to 1.8.4 ASAP. There’s no need to stick with an old
version when it’s so easy to install. If you’re on Windows, there’s a
one-click installer that’ll do it all for you.

Thanks, Timothy.

I see that SourceForge has a near-final release of 1.8.4. That sounds
pretty good, except I have one concern: I’ve got Rails installed as
well as Scite and other stuff, and I got them all using Ruby Gems.
So I fell reluctant to do any SciTE until the Gem for it is updated.
What do you think?

In the meantime, I hope someone else post a how-to on line numbering.

Regards,
Richard

On Thu, 30 Mar 2006, Richard wrote:

Richard
gvim runs on windows…

-a

[email protected] wrote:

TIA,
Richard

gvim runs on windows…

:slight_smile:

Hey Jim and Ara,

You guys are over my head.

My humble question is how to get SciTE v. 1.59 running on WinXP-Pro/SP2
to spit out line numbers for the text lines I pump in to it. Before I
retired 5 years ago, I knew how to configure SciTE. Now that I “pick
up my keyboard and mouse” again, I find that I’m a little rusty, to
put it mildly.

So if you guys could just point me in the right direction, I’d be most
appreciative. Besides, you’ll feel good knowng you’ve helped out one
of America’s senior citizens. :slight_smile:

Regards,
Richard

Richard wrote:

So if you guys could just point me in the right direction, I’d be most
appreciative. Besides, you’ll feel good knowng you’ve helped out one
of America’s senior citizens. :slight_smile:

Regards,
Richard

Options | Open User Options File
add this command:
line.margin.visible=1

Although I’m using 1.67 it should work for you.
Bhrgunatha

In your SciteUser.properties file (or global):
line.margin.visible = 1

I hope thats the case in older versions of Scite, but head over to
http://scintilla.sourceforge.net/SciTEDoc.html
for more customization info for your properties file

Thanks, Mitchell.

That link was great!

“line.margin.visible=1” and “line.margin.width=1+” did the trick for
ver. 1.59 under WinXP

Embarasments: [1] The View menu would have allowed me to turn
line-nubers on and off (but with a default width). [2] The Help/SciTE
Help menu item would have gotten me to the file whose link you so
kindly provided. [3] I could have modified the relevant properties file
merely by clicking Options/Ruby properties (instead of opening it in
Notepad, the way I did.)

My worst embarasment: Yesterday I was toggling breakpoints on and off
by left-clicking in the margin opposite desired script lines. Today
that’s not working. I commented out the new options to no avail. Did I
accidentally destroy something in the options file, perhaps? Any
ideas?

Again, thank you very much for your help.

Regards,
Richard

Hi Mitchell,

I think my recollection of toggling breakpoints in SciTE for Ruby
programs is mistaken. I was toggling breakpoint in Microsoft Visual
Studio.NET for some C++/MFT development.

Sorry for the mix-up.

Again, thanks for your excellent help on line-numbers.

Regards,
Richard