### Navigation

- index
- next |
- previous |
- Tutorial 5.2.1 documentation »

# 3. Editing sources

In the project view, open the common directory by clicking on the [+] sign (a triangle under unix systems) on the left of common. This will open the directory and display a list of source files located in this directory.

Now, double click on `sdc.adb`: this will open a source editor on this file. The source code is syntax-highlighted: keywords, comments, strings and characters have different colors.

As with many other properties, colors are configurable in GPS:

Select the menu Edit->Preferences. This will open a preferences dialog window.

Select the Editor->Fonts & Colors page by clicking on the cross next to the item Editor and then selecting the Fonts & Colors item.

As you go over the various lines and labels, you will notice that by holding the mouse over a label, a tool tip pops up displaying on-line help about the selected item.

Change the background color of the Keywords by clicking on the last button, at the right of the Keywords line.

Choose a color, e.g a light green. When you’re done with the color selection, click on OK in the color selection dialog.

Click on the Apply button and look at the effects in the source editor. If you like the new display, click on OK to confirm the changes, otherwise clicking on Cancel will revert to the previous color.

### Navigation

- index
- next |
- previous |
- Tutorial 5.2.1 documentation »