jEdit and Ruby on Rails: More Syntax Highlighting
Submitted by Monday, 18 September, 2006 - 23:33
on
OK...so I have the base syntax highlighting working for the RubyPlugin so that words like "class" and "def" get highlighted but since I'm new to Ruby programming a nice confirmation of when I actually type (or mistyped) a method name would be for more complete syntax hightlighting so that words like: find_all, belongs_to, has_many, scaffold, etc would be recognized.
Now, I know the highlighting is determined by the ruby.xml file and that I could just add keywords to the XML file to get the highlighting to work but I'd then need to constantly be updating the XML file as I added new gems.
So I have two questions:
1. Does anyone know how to get syntax highlighting for the methods (and all the other methods that my ruby install would support) in a dynamic fashion...looking at what is installed and looping through those functions? I'm also new to jEdit and trying to configure it to my liking.
2. If I do need to brute force the XML file and hardcode all the available methods, can someone point me in the direction of a page that would have all the available ruby on rail methods? And all the RHTML methods? I am having a hard time finding someplace where I could copy all the the method names out and format them for the ruby.xml file. I just want a list basically.
Many thanks,
loki_mdog
Now, I know the highlighting is determined by the ruby.xml file and that I could just add keywords to the XML file to get the highlighting to work but I'd then need to constantly be updating the XML file as I added new gems.
So I have two questions:
1. Does anyone know how to get syntax highlighting for the methods (and all the other methods that my ruby install would support) in a dynamic fashion...looking at what is installed and looping through those functions? I'm also new to jEdit and trying to configure it to my liking.
2. If I do need to brute force the XML file and hardcode all the available methods, can someone point me in the direction of a page that would have all the available ruby on rail methods? And all the RHTML methods? I am having a hard time finding someplace where I could copy all the the method names out and format them for the ruby.xml file. I just want a list basically.
Many thanks,
loki_mdog