[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Enable line-numbers for text entered - How to?

RichardOnRails

3/29/2006 10:23:00 PM

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

8 Answers

Timothy Goddard

3/29/2006 10:55:00 PM

0

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.

RichardOnRails

3/29/2006 11:13:00 PM

0

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

Ara.T.Howard

3/29/2006 11:22:00 PM

0

james_b

3/30/2006 12:34:00 AM

0

ara.t.howard@noaa.gov wrote:
> On Thu, 30 Mar 2006, Richard wrote:
>
>> 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
>
>
> gvim runs on windows...

:)

--
James Britt



RichardOnRails

3/30/2006 2:49:00 AM

0

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. :-)

Regards,
Richard

mitchell

3/30/2006 12:34:00 PM

0

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/Sci...
for more customization info for your properties file

Richard wrote:
> 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

RichardOnRails

3/30/2006 3:27:00 PM

0

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

RichardOnRails

3/31/2006 1:40:00 AM

0

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