From Frictional Wiki
Jump to navigation Jump to search


This is for those who are not interested in using Notepad++ and prefer to use Geany. For those who are unfamiliar with Geany, Geany is considered an integrated development environment. It has many features that Notepad++ has (e.g. auto-complete, syntax highlighting, tabbed interface, etc) and perhaps a few other useful features that Notepad++ lacks, and it is cross-platform (though it may be a bit more complex to install on a Mac).

Geany setup

For auto-complete and other suggestive features Geany uses its tags system to accomplish this. To make our work easier for us, we'll simply add the HPL2 functions list to an already existing supported language: the C language. This is done automatically when Geany reads our .tags file. In this way we can just tell Geany to assume that all %%*%%.hps files are C++ files, which would also trigger C++ syntax-highlighting and symbols listing for all .hps files.

    1. Assuming you already have Geany installed, go here and download the paste. Be sure to save the file as "hps.c.tags" (as the title of the paste shows).
    2. Move the file to Geany's user tags directory. In Windows 7 that would be, for example, C:\Users\username\AppData\Roaming\geany\tags. In Linux that would be /home/username/.config/geany/tags.
    3. Open up the filetype_extensions.conf file. In Windows 7 that would be found in, for example, C:\Program Files (x86)\Geany\data. In Linux that would be in, for example, /usr/share/geany.
    4. Look for the C++ line and add "%%*%%.hps;" to the end of it (without quotes) and save.

Now the next time you start Geany your .hps files will provide the same, if not more, satisfaction as it may have in Notepad++.


For those who have trouble following written instructions and want to see it done visually: