Skip to main content

Geany - A Good Web Development Editor (IDE)

Geany Version 0.16

Geany Homepage

Last year I finally made a switch to GNU/Linux as my operating system and had been in search of a good editor for my web development. In Windows I used Dreamweaver for the purpose and was quite happy with it. It could can easily highlight PHP, HTML, JavaScript and other codes of some other languages related to web. It can also do some Auto-Completion – a feature I think is a must-have. I also liked the fact that it (version MX) was reasonably light on system resources.

When I switched to Linux, I tried Bluefish, Komodo Edit, Netbeans IDE. Bluefish (ver 1.0.7) had  a  bad syntax highlighting feature besides other things I found to be quite irritable (working with PHP files, at least). Komodo Edit and Netbeans stood out especially Komodo Edit, in terms of functionality, usability and other small-small things. But still these were not what I was looking for. I wanted something good in terms of functionality but at the same time light on resources (Komodo Edit took about 15 seconds to load). I wanted something that had a good balance between features and memory footprint.

Geany is small (source package is about 2.2 MB), light on resources and at the same time loaded with functionality and ease of use for the size. Geany does not have all the features of a full-fledged IDE (like for example Komodo Edit) but it has got many of the important ons. And it's not just PHP and web development that you can use it for, it has support for a good number of languages (programming, scripting etc). But as I've only used it for web development, I'm strictly talking in that context throughout.

Here are some of the features I find very helpful:

  1. AutoComplete: For functions(inbuilt as well as user-defined), variables, classes etc. Inbuilt functions are shown with their argument list-very useful. And there's but only a few functions I couldn't find in its database. Just type in a few characters and it shows a nice drop-down list of suggestions, select one and it shows the function's parameters list and their types. TIP: By default you need to type in at least three characters for it to give you suggestions for AutoComplete(ion) but it can be changes from Edit-> Preferences-> Edit(Side-Tab)-> Completions(Tab). I personally have set it to be 1.

    Geany: Auto-Complete Feature
  2. Compile and Make: You can't “make” a PHP script but compile is damn good a feature. Now forget refreshing the browser. NOTE: Can only check syntax errors.

    Geany: Compile Feature
  3. Code-folding: Another useful feature especially for lengthy scripts.

    Geany: Code Folding
  4. Auto-Closing: Can close (X)HTML tags, parenthesis, curly braces, quotes etc. for you. Check Edit->Preferences->Edit(Side-Tab)->Completions(Tab) for settings.

  5. Sidebar: These are many tabs in the sidebar but one of them particularly stands ot. The one which displays “Symbols” in the document-variables, functions, classes, objects, constants tec. This one reminds me of the commercial IDEs such as Visual Studio. Just click on something to find its declaration.

    Geany: Sidebar
  6. Sessions: Just like Firefox can restore sessions of open tabs(websites), Geany can restore session of files. If I'm working on, say, ten files and I decide to go take a bath. I can close and shutdown my PC because Geany will open all the files for me the next time I run it. Great!

  7. Pre-defined Comments: Whether you want to insert copyright note or license information or just function information. Just right click and and got to “Insert Comments” menu, you have them just a click away! There also exist a  feature for inserting current date and time, for that go to “Insert Date” from the right -click menu. Useful!

    Geany: Pre-Defined Comments

  8. Windows Version: Don't want to switch to Linux yet! No problem! Just download the windows version (needs GTK libraries installed)

  9. In spite so many useful features there is one more thing I expect Geany to do – better support for HTML files. Look, PHP and HTML go hand-in-hand and I'd have loved to have HTML preview feature like Dreamweaver has. We often embed PHP in HTML pages and Dreamweaver works perfectly well for these kind of pages. This is where I miss my old Dreamweaver the most.  I'm not saying this is Geany's short-coming as it's designed not just for web development, but when you do web development you'll  feel it's missing.

Some might wonder why I'm always mentioning Dreamweaver. This is because unlike some of the editors I've used, it isn't just restricted to HTML pages-it can handle dynamic content as well. Web development isn't just HTML or PHP or ASP, it's a mix which Dreamweaver handles quite well. It's a great HTML editor as well as it's a quite-great PHP editor, this is what I love about it.

Geany Homepage

Geany Download Page

Popular posts from this blog

The Best Way(s) to Comment out PHP/HTML Code

PHP supports various styles of comments. Please check the following example: <?php // Single line comment code (); # Single line Comment code2 (); /* Multi Line comment code(); The code inside doesn't run */ // /* This doesn NOT start a multi-line comment block /* Multi line comment block The following line still ends the multi-line comment block //*/ The " # " comment style, though, is rarely used. Do note, in the example, that anything (even a multi-block comment /* ) after a " // " or " # " is a comment, and /* */ around any single-line comment overrides it. This information will come in handy when we learn about some neat tricks next. Comment out PHP Code Blocks Check the following code <?php //* Toggle line if ( 1 ) {      // } else {   ...

How to Create an HTML Form Linked with MySQL Database in PHP

If you're looking for example code and detailed discussion on how to create an HTML form that stores data in a MySQL database using PHP then this post might be what you're looking for. I assume that you're familiar with basic HTML, CSS, PHP coding, and  MySQL. I am going to divide this small project into two parts: The HTML form itself that takes input from the user and the PHP script that saves it into the database A table that displays the user-added data that has been saved in the database. We'll be dealing with the first part in this tutorial. Again I'd like to break this problem into a few parts so that it's easier for you to understand and probably gives you an insight into how breaking up a problem into smaller chunks can help make things clearer in your mind. Let's think about it, there is an HTML form (that is HTML code), then there is the PHP code that deals with the user-input data, and the MySQL database itself. For this tutorial, we'll b...

Fix For Toshiba Satellite "RTC Battery is Low" Error (with Pictures)

RTC Battery is Low Error on a Toshiba Satellite laptop "RTC Battery is Low..." An error message flashing while you try to boot your laptop is enough to panic many people. But worry not! "RTC Battery" stands for Real-Time Clock battery which almost all laptops and PCs have on their motherboard to power the clock and sometimes to also keep the CMOS settings from getting erased while the system is switched off.  It is not uncommon for these batteries to last for years before requiring a replacement as the clock consumes very less power. And contrary to what some people tell you - they are not rechargeable or getting charged while your computer or laptop is running. In this article, we'll learn everything about RTC batteries and how to fix the error on your Toshiba Satellite laptop. What is an RTC Battery? RTC or CMOS batteries are small coin-shaped lithium batteries with a 3-volts output. Most laptops use ...