Skip to content

Ruby on Rails MIME and syntax files for gedit

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

mkllnk/gedit-rails-extensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gedit Rails Extensions

Here are some extensions for Ruby/Rails developers using gedit.

Install

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

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)

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