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

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

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 {      // } //*/ //* Toggle line if ( 2 ) {      // } else {      // } //*/ Now see how easy it is to toggle a part of PHP code by just removing or adding a single " / " from th

Introduction to Operator Overloading in C++

a1 = a2 + a3; The above operation is valid, as you know if a1, a2 and a3 are instances of in-built Data Types . But what if those are, say objects of a Class ; is the operation valid? Yes, it is, if you overload the ‘+’ Operator in the class, to which a1, a2 and a3 belong. Operator overloading is used to give special meaning to the commonly used operators (such as +, -, * etc.) with respect to a class. By overloading operators, we can control or define how an operator should operate on data with respect to a class. Operators are overloaded in C++ by creating operator functions either as a member or a s a Friend Function of a class. Since creating member operator functions are easier, we’ll be using that method in this article. As I said operator functions are declared using the following general form: ret-type operator#(arg-list); and then defining it as a normal member function. Here, ret-type is commonly the name of the class itself as the ope