Here are some extensions for Ruby/Rails developers using gedit.
The contained Makefile installs the MIME packages and syntax files to the system directories.
sudo make install
sudo update-mime-database /usr/share/mime
Restart gedit if it's already running.
For manually installing MIME packages:
sudo cp mime-packages/rails.xml /usr/share/mime/packages/
sudo update-mime-database /usr/share/mime
For manually installing syntax files (.lang):
sudo cp language-specs/*.lang /usr/share/gtksourceview-2.0/language-specs/ # for gedit-2
sudo cp language-specs/*.lang /usr/share/gtksourceview-3.0/language-specs/ # for gedit-3
rails.xml:
- RHTML Template (*.rhtml, *.erb)
- Ruby JavaScript (*.rjs)
- Ruby Rakefile (Rakefile)
- Ruby Rake Task (*.rake)
- Ruby XML Template (*.rxml, *.builder)
- YAML Document (*.yml)
- Haml Template (*.haml)
- Sass Stylesheet (*.sass)
- haml.lang: Specs for the Haml templating language
- rhtml.lang: Specs for the old Ruby HTML file type
- sass.lang: Specs for the Sass Stylesheet language