Syntax Highlighting

Syntax highlighting makes source code easier to read by showing different parts of the text in different colors.

gedit chooses an appropriate syntax highlighting mode based on a document's type. To override the syntax highlighting mode, choose View ▸ Highlight Mode, then choose one of the following menu items:

Normal

Do not display any syntax highlighting.

Sources

Display syntax highlighting to edit source code. Use the Sources submenu to select the source code type.

Markup

Display syntax highlighting to edit markup code. Use the Markup submenu to select the markup code type.

Scripts

Display syntax highlighting to edit script code. Use the Scripts submenu to select the script code type.

Others

Display syntax highlighting to edit other types of code. Use the Others submenu to select the code type.