Thursday, March 13, 2008

Using Ultra Edit for Ruby

Configure Ultra Edit for Ruby Syntax highlighting.
First open Ultra Edit. Open the View Menu. Open the View As (Highlighting File Type) and see what the next empty language number is.

Then Open C:\Program Files\IDM Computer Solutions\UltraEdit-32\wordfile.txt.

Move to the bottom of this file and paste the following code. Change the L12 to L## to the next Language number in your Ultra Edit menu.



/L12"Ruby" Line Comment Num = 2# Block Comment On = =begin Block Comment Off = =end Escape Char = \ File Extensions = RB RBW
/Indent Strings = "do" "begin" "{" "|"
/Unident Strings = "}" "end"
/Delimiters = []{}()<>="'.,+
/C1"Keywords"
__FILE__ __LINE__
BEGIN
END
alias and
begin break
case class
def defined? do
else elsif end ensure
false for
if in
module
next nil not
or
redo rescue retry return
self super
then true
undef unless until
when while
yield
/C2"Object, Module, Class, Kernel"
__id__ __send__
ancestors alias_method append_features attr attr_accessor attr_reader attr_writer abort at_exit autoload
binding block_given?
class_eval class_variables clone const_defined? const_get const_set constants callcc caller catch chomp chomp! chop chop!
display dup
extend_object eval exec exit exit! eql? equal? extend
fail fork format freeze frozen?
gets global_variables gsub gsub!
hash
included_modules instance_methods include iterator? id inspect instance_eval instance_of? instance_variables is_a? inherited
kind_of?
lambda load local_variables loop
method_defined? module_eval method_added module_function method method_missing methods
name nesting new nil?
open
private protected public private_class_method private_instance_methods protected_instance_methods public_class_method public_instance_methods p print printf proc putc puts private_methods protected_methods public_methods
remove_const remove_method raise rand readline readlines require respond_to?
scan select set_trace_func singleton_method_added sleep split sprintf srand sub sub! syscall system send singleton_methods superclass
test throw trace_var trap taint tainted? to_a to_s type
undef_method untrace_var untaint
/C3"Instance Variable"
** @a @b @c @d @e @f @g @h @i @j @k @l @m @n @o @p @q @r @s @t @u @v @w @x @y @z
/C4"Class Variable"
** @@a @@b @@c @@d @@e @@f @@g @@h @@i @@j @@k @@l @@m @@n @@o @@p @@q @@r @@s @@t @@u @@v @@w @@x @@y @@z
/C5"Globals"
** $
/C6 "Symbols"
** :
/C7"Constants"
** A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
/C8"Operators"
+ +=
- -=
% %=
/ /=
** **=
& &=
| |=
^ ^=
> >> >>=
< << <<= = == ===


This configuration was originally pulled from a website about supoort. But seeing how I couldn't actually find anywhere on their website that linked to the file, I decided to just include it here. I thank them greatly for a good layout to work with Ultra Edit.

I've been wanting to learn Ruby for some time, and finally found what looks like a good beginners guide to ruby. Here's a link to The Little Book of Ruby. I've only made it through chapter 1 so far, but it looks like a good place to start.

**** Updated 10/31/2008 ****
IDM now has word files for Ultra Edit on their site. Their version of the Ruby language is possibly more complete than the one I have included. You may want to check it out at http://www.ultraedit.com/downloads/extras.html#wordfiles

3 comments:

Anonymous said...

a research paper written by students over an academic term or semester which accounts for a large amount of a grade and makes up much of the course. Term papers are generally intended to describe an event or concept or argue a point. There is much overlap between the terms "research paper" and "term paper". The phrase "term paper" was originally used to describe a paper (usually a research based paper) that was due at the end of the "term" - either a semester or quarter, depending on which unit of measure a school used. However, the term has fallen out of favor. Common usage has "term paper" and "research paper" as interchangeable, but this is not completely accurate. Not all term papers involve academic research, and not all research papers are term papers.

Jenis Broad said...

Quite possibly the most succinct and current info I came across about this subject. Sure pleased that I discovered that site by accident. I’ll probably be subscribing for your feed so that I will get the most current updates. Like the information here.

Term Papers

Anonymous said...
This comment has been removed by a blog administrator.