> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/rdm/knowledge-base/knowledge-base-articles/syntax-highlighting.md).

# Syntax highlighting

Configure syntax highlighting in Remote Desktop Manager terminal sessions to color and emphasize keywords using regex or simple text matching rules.

Syntax highlighting is a feature found in text editors, commonly used for programming, scripting, and markup languages like HTML. It displays text, particularly source code, in various colors and fonts to differentiate and emphasize different categories of terms.

In Remote Desktop Manager, syntax highlighting applies to SSH Shell sessions. Highlighting rules are grouped in profiles. A profile is a named set of rules that can be stored locally, in the system settings of the workspace, or in an entry.

## Configure syntax highlighting profiles

Profiles can be configured in the following locations:

* Local settings: ***File – Settings – Entry types – Sessions – Terminal – Syntax highlighting***.
* System settings of the workspace: ***Administration – System settings – Application – Type settings***, in the ***Terminal - Syntax highlighting*** section.

To create a profile:

1. Open one of the locations above.
2. Click ***Add***.
3. Enter a ***Name*** and a ***Description*** for the profile.
4. Click ***Add*** to create a highlighting rule.
5. Configure the rule options, then click ***Save***.
6. Click ***Save*** to save the profile.
7. Optional: Select the profile in the ***Default profile*** list.

Profiles can be duplicated, and exported or imported in XML format with the ***Export*** and ***Import*** buttons.

## Configure syntax highlighting in an entry

In the properties of an SSH Shell entry, go to ***Terminal – Display*** and select a ***Syntax highlighting mode***.

| Mode                                  | Description                                                                         |
| ------------------------------------- | ----------------------------------------------------------------------------------- |
| Default profile (local configuration) | Uses the default profile of the local settings.                                     |
| Default profile (system settings)     | Uses the default profile of the system settings.                                    |
| Linked (system settings)              | Uses the profile selected in the ***Profile*** list, from the system settings.      |
| Custom                                | Uses a profile specific to the entry. Click ***Customize*** to configure its rules. |

The entry uses only the rules of the selected profile. Rules from different profiles are not combined.

## Highlighting rule options

### General

| Option               | Description                                                                         |
| -------------------- | ----------------------------------------------------------------------------------- |
| Name                 | The name displayed in the rules list. If empty, the keywords are displayed instead. |
| Keyword              | The text to match. Enter one keyword per line.                                      |
| Highlighting enabled | Enable to apply the rule.                                                           |

### Style

| Option           | Description                                                                              |
| ---------------- | ---------------------------------------------------------------------------------------- |
| Background color | The color behind the text: one of the 16 ANSI colors, ***Custom*** or ***Transparent***. |
| Foreground color | The color of the text: one of the 16 ANSI colors, ***Custom*** or ***Transparent***.     |
| Bold             | Enable to display the match in bold.                                                     |
| Underlined       | Enable to underline the match.                                                           |

### Advanced

| Option               | Description                                                                               |
| -------------------- | ----------------------------------------------------------------------------------------- |
| Use regex comparison | Enable to match the keywords as regular expressions.                                      |
| Case sensitive       | Enable to make the match case sensitive.                                                  |
| Complete word        | Enable to match whole words only. Unavailable when ***Use regex comparison*** is enabled. |

The order of the rules in the list determines their priority. Use ***Move up***, ***Move down***, ***Move to top*** and ***Move to the bottom*** to change the order.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/rdm/knowledge-base/knowledge-base-articles/syntax-highlighting.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
