📜 ⬆️ ⬇️

Text editors for Linux (part 2): Geany

The first part is here ...

Geany is a GTK2 based lightweight text editor for Linux. Geany supports internal and external “plugins”, and to a large extent it stands out as a source code editor that includes a simple IDE (integrated development environment).

Geany requires only GTK2 (> = 2.6.0) libraries (including Pango, Glib, and ATK libraries), and is not dependent on any X manager or desktop environment. For example, I have Ubuntu 7.10 with all the necessary libraries. You will also need a C / C ++ compiler and a make utility.
')
Most Linux distributions have a Geany binary package, but most of them are not updated to the current release 0.14 , which is available in the source code. If you want the latest version, then download the archive and compile the project. Geany uses the normal installation process for Linux: configure, make, make install (as root). Perform these steps in the console after downloading the tar.bz file to your home directory.

cd ~
tar -zxvf geany-0.14.tar.gz
cd ./geany-0.14
./configure
make
sudo make install




If everything went well, you can run Geany 0.14 with the command geany from the command line.

Geany - launch
Pic.1 Geany text editor

By default, Geany displays 3 panels: the main window for the code, the panel on the left and the message area at the bottom. The sidebar has the Tags tab for the structure of variables or tags of the current file and the Documents tab containing a list of open documents. The message area has 5 tabs: Status - Geany's internal messages, Compiler - compiler messages, Messages - Geany main messages, Notes - you can write anything and a terminal window in Geany here. Figure 2 shows the dialog box with settings (opens in the “Edit” -> ”Parameters” [Ctrl + Alt + P]), which contains the tabs of options for customizing Geany.

Geany - settings
Fig.2 Geany text editor - settings

Geany supports any developer needs for editing source code, including cutting and pasting text, searching (including searching using regular expressions), moving text, selecting paragraphs of code, dividing code into modules, syntax highlighting (for more than 30 programming languages), moving lines, conversion of empty space and tabs, column mode, tree structure of functions and variables, drag & drop editing, standard undo for [ctrl-z], as well as many other useful functions. Some of the functions are displayed in Fig.3.

Geany - working with PHP code
Fig.3 Geany text editor - working with PHP code

For me, this editor was a pleasant discovery, it combines the simplicity of a text editor with the manners of a full and powerful IDE. I like the automatic hints for the continuation of the function name, as well as the hint with the available function parameters. This editor is extensible with plugins.
After working in the editor, only pleasant sensations remain: wink :. Since I have to periodically work in Linux, then in Windows, I was also glad that there is an editor distribution for Windows.

Source: https://habr.com/ru/post/38166/


All Articles