Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

In mac using Text - Mate we can easily auto - indent the characters in the file for Ruby on Rails code in various rb,erb or html.erb files. I am searching for a plugin for GEdit for the same purpose after trying hard I am unable to find any suitable plugin which can work for me. Any clues which plugin I should go for and how to get that ?

share|improve this question
    
Have you solved this issue? –  pl1nk Jun 24 '12 at 22:32
    
@pl1nk not as if now....and seems there is no plugin for Gedit. Rails plugin is avaialable for eclipse if you want to try that out –  Sahil Grover Jun 25 '12 at 4:56
    
Do this question and/or this help? –  pl1nk Jun 25 '12 at 12:38
    
the plugins specified in second link adds auto-completion and some other good features but not solves the real solution of aligning text in proper indentation like in textmate or other editors –  Sahil Grover Jun 25 '12 at 16:41

2 Answers 2

up vote 0 down vote accepted

http://www.sublimetext.com/2 seems the best editor to me available for all Operating Systems

share|improve this answer

In the Preferences menu of gedit navigate to theEditor tab, there you can enable automatic indentation (tick the box to activate it).

share|improve this answer
    
which menu u talking about @kosaidpo ?? –  Sahil Grover Dec 10 '11 at 20:53
    
up there near the File menu ,view ... etc –  kosaidpo Dec 10 '11 at 21:19
    
it has just file, edit, view, search, tools, documents and help ?? @kosaidpo which one to follow –  Sahil Grover Dec 11 '11 at 21:39
    
under that entry Edit you ll see a sub-menu named preferences click that then you get an interface there you ll find tabs under the second tab read those options you find what you want good luck ;] –  kosaidpo Dec 11 '11 at 22:46
    
Yes I have seen that which states smart indentation. I have checked that but that doesn't align the text which i insert later on. If I start writing code it aligns only that. But in case I have already written the code and now I want to Indent it properly how to do that @kosaidpo –  Sahil Grover Dec 12 '11 at 6:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.