Tag Archives: text editor


gedit plugins for Ruby on Rails

gedit is the default and one of the most popular text/code editor in GNOME based distro such as Ubuntu, Debian, Fedora, Linux Mint etc. It has a lot of cool plugins to add some extra features, some are installed by default while some are available there in package repository, to activate just go to the preferences section and enable it; You don’t even need to restart the gedit application.

gedit is a simple, efficient, easy to use and powerful text editor, it has lot of advanced features that makes it really good for programming (if you’re more hungry for features, then you should try Emacs, although Emacs is little hard to learn but the extra productivity you will gain is incomparable, good for long run). But these features are not enough for a rails developers, so there is a PPA dedicated for rails developers (although it’s for Ubuntu but works well with any debian based distro).

Gedit with GMate Plugin : on Ubuntu 12.04

GMate – The missing Gedit Plugins for Rails Developers

GMate is a set of cool plugins that will add some nice features to gedit text editor – in order to increase the fun with Rails Development (e.g by default gedit can’t highlight the ruby code in .erb.html files but gmate will do it for you!). Since gmate is a PPA for Ubuntu 11.10/12.04/older_versions so it will not work only on Ubuntu but also on other Debian derivatives. If you’re using Fedora or Archlinux then it won’t work, you may have to install it individually, see top 10 gedit plugins for the list of cool plugins.

Install GMate in Ubuntu

sudo apt-add-repository ppa:ubuntu-on-rails/ppa
sudo apt-get update
sudo apt-get install gedit-gmate

You can enable/disable the plugins from Edit -> Preferences -> Plugins.

Recommended Reading(s)

Gedit Shortcuts – Gedit Cheat Sheet for beginner developers, it also contains Gmate shortcuts!

Learning Rails ?

Check out this interactive video course on Ruby on Rails at Treehouse.


Notepad for ubuntu 11.04/10.10

Are you looking for Notepad on Ubuntu 11.04 (Natty Narwhal) or 10.10 (Maverick Meerkat) or 10.04 (Lucid Lynx) or any Linux based system ? it seems that you are (or probably you were) a window user and searching for a text editor such as Notepad. Sorry to say – Notepad is a windows NT based application which is available for windows only, so there is no chance on Ubuntu 11.04 or whatever. But my question is “why are you searching for notepad, on Ubuntu?”, the obvious answer would be – just for creating or editing a simple text file.  Oh! that’s what you want; Relax, on Ubuntu there is a text editor called – ‘gedit’ (installed by default) – one of the most powerful text editor on this planet.

So I recommend gedit for text editing or source code editing or whatever you wanted to do with notepad – it’s there in gedit; in fact gedit is far better than the notepad (better read this post – ‘best text editor for ubuntu users‘ to understand few great features (syntax coloring, auto completion..) of gedit). But anyway, if you desperately need notepad (I don’t no why? may be just for Fun! because I don’t see any rational reason behind this) on Ubuntu then you need to install ‘Wine’ a windows compatibility layer (developed using reverse engineering) which will allow you to run some windows applications on Ubuntu or Linux based distributions.


Installing Notepad on Ubuntu 11.04/10.10 : using Wine


Open Terminal (hit CTRL+ALT+T ) and type (to install wine as well as some basic apps such as notepad):

sudo apt-get install wine

Follow the reference to know more about installing wine on Ubuntu.

gedit -

best text editor for Ubuntu

Text Editor is one of the most basic and must required application, for every users(it doesn’t matter where they comes in – novice , intermediate or advanced category). Text Editor is basically used to create/edit simple text documents(e.g *.txt),i.e to manipulate the text without any formatting information. Windows NT based OS(e.g Windows XP,Vista or 7)  comes with a default – text editor called Notepad (The worst text editor of this planet(or may be in this universe,but I’m not sure about that)).

Ubuntu (10.04/10.10/11.04(Natty Narwhal)) or any other Linux based distribution also comes with some default text editor, but it depends on the distro as well as the desktop(like GNOME or KDE or LMDE or XFCE) you are using; such as- GNOME desktop package contains gedit text editor by default while the KDE desktop package has kate and so on.

In GNU/Linux both type of text editors – command line and GUI, are popular. Some popular/top GUI text editors are emacs,gedit,kate etc., and the popular/awesome command line editors are Vim/vi,Nano etc. Therefore a lot of text editors are available for Ubuntu, So you might be thinking – “what text editor I should use ?”, “what editor is best for programming/coding?”, “Is there any TextMate(The most popular code editor for Mac OS X) like editor is available for Ubuntu?”. Relax, Ubuntu has the best text editor on this planet(or may be in this universe,but I’m not sure about that).

gedit – The Best Text Editor for Ubuntu

Vow! gedit is best?, it is already installed on my Ubuntu. Yeah! you are right, gedit comes by default, not only with Ubuntu but also with other Linux based OS e.g Fedora,Linux Mint,Debian etc, which uses GNOME as a desktop environment. gedit comes with Gnome desktop package, it is free,open source and cross-platform application. The latest stable version is 2.30.3. it is a UTF compatible text editor,with simple and easy to use interface. gedit is very flexible; so here is the one snapshot of gedit on my Ubuntu 10.10 desktop, after tweaking the gedit to look like TextMate.

gedit -

why gedit is the best text /coding /programming editor ?

  • it is fast,light weight and very easy to use.
  • it provides Syntax Coloring(through template mechanism, so it can be changed/adjusted according to the need) for all common programming languages like C,C++,java,ruby,python,perl,php,javascript, etc
  • it is very flexible and modular
  • its features can be easily extended/altered, using plugins(e.g file browser plugins,auto complete plugins etc)

That’s all ..if you think that, any other text editor is better, or whatever, express your thought through comments.

gedit -

TextMate for Ubuntu Linux

TextMate is one of the most popular text editor, available only for Macintosh Computers(Mac OS X). If you have ever used the TextMate on Mac OS, then surely you always want to stick with it, probably due to its simplicity, productivity and features.

But the problem is that “TextMate is a Mac Application, the default a proprietary text editor for MAC OS X and it is not available for any other operating system”. Well! then how will we use it on Ubuntu 10.04/10.10/11.04 or Linux Mint or Open Suse or any other Linux based OS ?  The simple solution is – To mimic the look,layout and features of TextMate, so in the end of this post we will get a TextMate like text editor. Programming is complete Fun!, when you have TextMate like a powerful code editor (Emacs, Vim, gedit, TextMate etc), rather than a bloated and painfully slow IDE.

Why TextMate is So Popular among the Programmers ?

  • it is simple to use
  • Syntax Color Scheme is great
  • Auto completion of code(e.g brackets, snippets)
  • looks great
  • it is light weight and fast
  • it increases productivity
  • File Browser, it’s easy to find the source files easily

gedit - textmate

Linux based Distributions (in short ‘distros’) have the default(GNOME based distros) text editor named – gedit, a free and open source text editor with a lot of powerful features and flexibility to extend the functionality by means of plugins. Therefore we are going to transform the gedit to textmate in few simple steps, so that gedit text editor will finally look (and almost behave) like TextMate. Actually you can customize gedit not only on Ubuntu but also on other Linux based distro, that uses gnome desktop or having gedit packages installed on the system.

Transforming gedit to TextMate in 4 simple steps

#1 :  Install gedit plugins

To install extra plugins, type the command at the terminal/command line/shell, followed by login password(If required) –

sudo apt-get install gedit-plugins

#2 : Install TextMate Fonts

Download the font – Monaco,which is the default font used in TextMate. Then copy it to home->username ->.fonts (hit CTRL+H to see hidden files).

#3 : Install Syntax color Scheme

download the DarkMate theme coloring scheme and install it from gedit. To install open gedit and click on Edit -> Preferences -> Font & Colors. Then click on Add button and locate the download file(darkmate.xml).

#4 : Install File Browser plugin

Download the class browser plugin ; Extract it to FileSystem-> usr-> share->gedit2->plugins. Then activate it by select the check box from gedit(Edit->Preferences->Plugins). Here is one snapshot ..if you have any doubt(or reply through comment,in case of any problem).


#5. Auto Completion (with Esc) and Tab Completion (expand code snippets using tab triggers)

With the gedit-plugin package, you will also get the snippets plugins, just enable that plugin – to enjoy tab completion.

Auto completion is another cool feature – that looks up the source code for auto completion of a variable_name (using Esc key) – so that you don’t have to type the full lengthy name.

Download textmate style autocompletion for gedit

To install the plugin, first extract the package and run install.sh. Finally, you just need to enable it from gedit -> preferences ->plugins.
Update! Try GMate plugin it’s great! See gedit plugins for Rails Developers for more details, #5 added.

web development tools for ubuntu - Geany

how to install geany on ubuntu

install geany ubuntu
What is Geany ?

Geany is a text editor based on GTK2 toolkit with some extra features i.e the features of an integrated development environment(IDE).It is an open source and free application available for Linux(Ubuntu,Linux Mint,Debian,Fedora..) as well as for Windows and Mac.Geany is a light and fast IDE,with little dependencies.

  • Basic Features of Geany IDE
  • code folding
  • syntax highlighting
  • auto closing of *ML(XML,HTML,..) tags
  • code navigation
  • plugin interface
  • symbol lists
  • Build system to compile and execute your code
  • supported files are XML,HTML,C,java,PHP,C++,javascript..

Installing Geany in Ubuntu

You can install Geany in two ways either by command line or from synaptic package manager by adding a package source,because geany has not been added into default packages.

From Synaptic package Manager

Open the Synaptic Package Manager(Enter your Password,if required).Then click on Settings->Repositories.A new window with the Name Software Soruces will appear.Click on Other Software Tab.Next,click on +Add button to add software source,now it will ask for APT Line.Type


in APT line and click on Add Source button.That’s all..Now update the package information by clicking on Reload button(in Synaptic Package Manager).Then search for ‘geany’ and mark the selected package for installation.Click on Apply to install.

Manual Installation of Geany on Ubuntu
Download The Package from the link given below.

Then open the file with Gdebi Installer and then click on ‘install package’ to begin the installation.Wait for the installation to complete.

After installing the Geany,you can find it in Applications->Programming->Geany.