Groovy. Thanks now that was simple. One that is complete and nice is
located off the nedit.org website.
Now back to writing things in Ruby.
-grant
···
-----Original Message-----
From: Gavin Sinclair [mailto:gsinclair@soyabean.com.au]
Sent: Monday, March 22, 2004 2:52 PM
To: ruby-talk@ruby-lang.org
Subject: Re: Nedit users using Ruby?
On Tuesday, March 23, 2004, 7:45:57 AM, Grant wrote:
Just starting to develop a bunch of scripts in Ruby and was wondering
if
anyone out there uses Nedit(an editor) for editing Ruby. If so, has
anyone developed a Syntax Highlighting scheme for Ruby for use in
Nedit?
And/Or the custom built in macros for commenting and so on. Nedit
ships
with a ton of different language support.
If not I may write up some of this and commit it to the Nedit
repository
so future release all support some of the nice things Nedit will do.
Google “nedit ruby” has some promising-looking leads.
Gavin
Grant Schoep wrote:
Groovy. Thanks now that was simple. One that is complete and nice is
located off the nedit.org website.
http://www.nedit.org/ftp/contrib/highlighting/ruby.pats
It’s a little simple for my tastes. I’ve cleaned up my nedit stuff on
RAA (http://raa.ruby-lang.org/list.rhtml?name=ruby_nedit) so that it can
be imported. It’s at:
http://redshift.sourceforge.net/nedit/ruby-nedit.pats
Briefly, there’s more hiliting, there are some shell cmds for running
ruby, ri, rd2, and there are some macros for working with rd2 markup.
(The link to there from RAA is broken, but RAA.frozen? now, so I can’t
fix it.)
The major item on my ruby-nedit wishlist, by the way, is a version of
Fill Paragraph that works well with commented blocks, like:
Some comments
about method foo
def foo(arg)
end
I’ll do it someday …
The major item on my ruby-nedit wishlist, by the way, is a version of
Fill Paragraph that works well with commented blocks, like:
Some comments
about method foo
def foo(arg)
end
I’ll do it someday …
You can find it on
http://www.nr.no/~joachim/Niki/index.php/Macro%20Collection
···
–
Jörg Fischer
http://nedit.gmxhome.de
Joerg Fischer wrote:
The major item on my ruby-nedit wishlist, by the way, is a version of
Fill Paragraph that works well with commented blocks, like:
Some comments
about method foo
def foo(arg)
end
I’ll do it someday …
You can find it on
http://www.nr.no/~joachim/Niki/index.php/Macro%20Collection
Hm, thanks! Looks like it will require some adaptation, but it’s a good
starting point. If I have time to get it working, I’ll post a note about
it here.
Joel VanderWerf wrote:
Joerg Fischer wrote:
The major item on my ruby-nedit wishlist, by the way, is a version of
Fill Paragraph that works well with commented blocks, like:
Some comments
about method foo
def foo(arg)
end
I’ll do it someday …
You can find it on
http://www.nr.no/~joachim/Niki/index.php/Macro%20Collection
Hm, thanks! Looks like it will require some adaptation, but it’s a good
starting point. If I have time to get it working, I’ll post a note about
it here.
Actually, it was almost perfect. The one thing I didn’t like was that it
left no space between the # and the comment line text. But that can be
fixed with these changes:
— .neditmacro-orig 2004-03-24 18:54:59.000000000 -0800
+++ .neditmacro 2004-03-24 18:54:36.000000000 -0800
@@ -51,7 +51,7 @@
first_quote = substring(part[i], 0, $search_end)
part[i] = substring(part[i], $search_end, length(part[i]))
first_quote = replace_in_string(first_quote, \
@@ -60,7 +60,7 @@
eof_quote = $search_end
next_quote = substring(part[i], found + 1, eof_quote)
next_quote = replace_in_string(next_quote, \
-
"([" quote_signs "] )\\s*", "\\1", "regex", "copy")
if (first_quote != next_quote) {
text = jf_para_rewrap(substring(part[i], 0, found),
margin, first_quote,\