Created: 2008-05-27 07:48
Updated: 2018-11-30 11:15
License: lgpl-3.0

Gedit Rails Extensions

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

MIME packages


  • 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)

Language Specs

  • 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
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more