Hope you know about the blue fish editor. Any how let me share my experience for those still not aware. It is more than a editor, the all in one package that can be used to code across many forms. Let it be HTML, C, PHP, CSS or SQL. This editor helps a lot. Ex: You choose SQL and then choose what type of query and give table name, it generates the query with right syntax. Similar case for CSS and HTML. Just give the element type or tag choosing from a list, then give the values, it generates the code. In ubuntu, simply type the following command to install and enjoy.
sudo apt-get install bluefish