Anjuta IDE Manual | ||
---|---|---|
<<< Previous | File Operations | Next >>> |
Anjuta can highlight many different languages. This is usually done automatically by determining the type of the file from the file extension. If Anjuta cannot determine the type of the file, there will be no syntax highlighting. You can explicitly force a particular highlight style by selecting the style from the menu Format->Force Highlight Style.
Source files which have block coding properties (such as C, C++, Pascal, Java etc.), have the advantage of working with code folds. All of the code blocks in the source file can be folded or unfolded by clicking on the fold points in the fold margin of the Editor window (usually a +/- symbol or up/down arrow). These fold points automatically appear for source files which use code blocks.
Code folding is especially useful when editing big source files that run to thousands of lines. Once the folds are closed, the document appears to become smaller, facilitating easy browsing and editing of the file.
FIXME:
Perhaps Stef would like to write something here about his gnome-print implementation.
If the current file is a C or C++ source or header file, then it is possible to automatically indent (auto-format) the file. This gives a clean look to the source code, increases legibility, reduces the likelihood of syntax errors, and above all it saves time. This can be performed by clicking on the Auto-format button in the main toolbar or choosing Format->Auto-format on the menubar. Change the style of formatting by customizing the choices in the preferences.
![]() | indent |
---|---|
You will need to have the indent utility installed in order to use this feature. Read the info page for indent for further details. |
<<< Previous | Home | Next >>> |
Finding in Multiple Files and Folders | Up | Compiling and Building |