![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
5 Cups of Ubuntu
![]() Join Date: Jun 2007
Location: Rijeka, Croatia
Beans: 30
Ubuntu 7.04 Feisty Fawn
|
After you installed Ruby on Rails its time to add support for it's extensions.
1. First we need to add new extensions to file mime.types located in /etc folder. 1.1 Lets do that. We have to add new extensions at the end of mime.types file. We'll do that with the following command: Code:
echo -e "text/x-ruby-source rhtml html.erb \ntext/x-eruby rjs \napplication/xml rxml builder" | sudo tee -a /etc/mime.types Code:
sudo update-mime-database /usr/share/mime 2.1 Unpack it with command: Code:
tar -xzvf files.tar.gz Code:
sudo cp x-rhtml.xml /usr/share/mime/packages Code:
sudo cp *.lang /usr/share/gtksourceview-1.0/language-specs Enjoy !
__________________
Constructive lurker
Last edited by Eric_Jardas; June 10th, 2007 at 04:26 AM.. Reason: typo |
|
|
|
|
|
#2 |
|
5 Cups of Ubuntu
![]() Join Date: Dec 2004
Beans: 22
|
Re: HOWTO: add support for .rhtml, .html.erb, .rjs, .rxml, .builder
Do you know how you might get this working in gutsy? Since in gutsy there is now gtksourceview1.0 and gtksourceview2.0, I tried putting these files in both, and I still can't get the source to highlight in gedit.
|
|
|
|
|
|
#3 |
|
First Cup of Ubuntu
![]() Join Date: Sep 2007
Beans: 2
|
Re: HOWTO: add support for .rhtml, .html.erb, .rjs, .rxml, .builder
I can't get rhtml to be recognized in gutsy either. Can anyone please help??
|
|
|
|
|
|
#4 |
|
First Cup of Ubuntu
![]() Join Date: Sep 2007
Beans: 2
|
Re: HOWTO: add support for .rhtml, .html.erb, .rjs, .rxml, .builder
Finally got syntax highlighting for rhtml, rjs, ect in gedit on Gutsy working!!
Hope this helps others: Ubuntu 7.10, rails, gedit and gtksourceview 2.0 |
|
|
|
|
|
#5 |
|
First Cup of Ubuntu
![]() Join Date: Dec 2006
Beans: 11
|
blogged it
i have some more info for ubuntu rails gedit heads here:
http://crepuscular-homunculus.blogsp...g-else-on.html thanks for the info! |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|