Loading the tag file was easy, using the drop-down item from the Tools menu. h files note the ‘.c.tags’ format of the tag file. Tag generation took me some time to figure out, as it appears to need full path specifications as well as a specific tag filename format, but I was able to get it to operate correctly by running the following command from the /src/ directory: Geany has built-in tag generation and tag support, although it’s not compatible with other tag standards such as Exuberant Ctags. Related to the symbol list, let’s look at tags, which allow you to find definitions of functions, macros, and variables. If you want to see the list arranged in order in the file, click Document -> Fold All. Clicking on any of these will bring you to that line automatically. Let’s go back and look at the symbol list in the sidebar window for the file about.c, which includes functions, macros, and variables, listed alphabetically with the line number in parenthesis. After exiting and reloading Geany, go to Help -> About, and you should see the change you made: ‘A SUPER fast and lightweight IDE.’ Then, under Terminal in the bottom message window area, su or sudo to root, cd ~/geany-0.14/src, and type make install. The Compiler tab of the bottom message window will show the results of the compile request. Press F9, or from the menu click on Build -> Build (no need to save first). Using Geany, edit line 174 of /src/about.c, and replace (“A fast and lightweight IDE”) with (“A SUPER fast and lightweight IDE”). Under the drop-down menu Build -> Set Includes and Arguments, edit the Build line to say make (Figure 2). To highlight Geany’s IDE features, let’s try a (trivial) development code change to the source code from Geany itself, after which we’ll compile and install it.įirst we need to configure our build setup for the Geany source code. Geany supports everything developers need to edit source code, including cut and paste, search (including limited expressions), replace, indentation, code folding, syntax highlighting (for more than 30 common languages), line wrapping, filetype (CR/LF), white space and tab conversion, column mode, symbol list support, drag and drop editing, standard CTRL-z undo, and a host of other editing features. Figure 1 shows the layout, along with the main Preferences screen (under the Edit pull-down menu), which allows a multitude of configurable features you can see its tab headings on the left side of the window. The message area contains five tabs, for Geany status messages, compiler execution messages, general Geany messages, a Scribble tab for note-taking, and a terminal for executing shell commands within Geany. The sidebar contains one tab for symbol definitions within the current file, and another for documents you currently have open. The default setup for Geany displays three panes: the main code window, a sidebar on the left, and a message area on the bottom. If all went well, you should be able to run Geany 0.14 by typing geany & on a command line. Perform the following steps in a console shell after downloading the tar.bz file to your home directory. Geany uses the normal Linux configure, make, make install (as root) installation process. If you want the latest, you must download and build it. Most Linux distributions have a binary package for Geany, but most are not up-to-date with the current 0.14 release, which is available in a gzip-compressed source code tar file. You will also need a C/C++ compiler and the make utility. For reference, my system is a standard Dell laptop running Absolute Linux 12.1, which comes loaded with all the tools needed (as do most Linux distributions). Geany requires only the GTK2 (>= 2.6.0) runtime libraries (including Pango, Glib, and ATK libraries), and is not dependent on any X window manager or desktop environment. Here’s an introduction to using Geany’s built-in features, including the IDE and built-in development capabilities. Geany supports internal and external plugins, and it excels as a source code editor, since it includes basic integrated development environment (IDE) functionality. Geany is a lightweight text editor for Linux based on the GTK2 toolkit.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |