How can i set syntax highlight in gedit for html.erb file as ruby file?
I tried these, doesn't work. Syntax highlighting in gedit not working automatically
For those who need it, here it is a simple solution to obtain Assembly highlighting code in Gedit (that basic is not supported). That's it! You're welcome!
Gedit (the default text editor) using GTKSourceView for it's syntax highlighting. It uses XML files to define how to highlight different syntax. There is a tutorial and a reference document on the GTKSourceView site.
There is also a less in depth tutorial on the Gedit site. After you create your new language spec, restart gedit and it will automatically add it to its list of languages. I assume you are talking about gedit (labeled as "text editor" in the ubuntu menu).
Oh! I got the solution.
You need to install Gmate in Ubuntu. GMate is a collection of plugins, themes/styles and other improvements to get TextMate-like features in Gedit. Type the following commands to install Gmate.
sudo apt-add-repository ppa:ubuntu-on-rails/ppa
sudo apt-get update
sudo apt-get install gedit-gmate
When you are finished open your a .html.erb
and voila! there it is.
More info visit https://github.com/gmate/gmate#readme
You can change the highlighting preference from the drop-down list on the status bar. See if there is an option for RHTML present. If there isn't, you can follow this post to install it in: here. That's what I did, it works for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With