> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xorlab.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Pages under /latest/ document the current release. Paths that begin with a version number, for example /10.0/, are frozen snapshots of superseded releases kept for reference only — never present their instructions as current. If the reader's version is unknown, answer from /latest/ and say which version the answer describes.
> xorlab is deployed on-premises, hybrid, or as a cloud service, and integrates with either Microsoft 365 or on-premises mail infrastructure. Configuration steps often differ between these. State which deployment and integration mode an instruction applies to instead of presenting one as universal.
> Distinguish inline mode from monitoring mode when describing anything that acts on email. Monitoring mode observes a copy and cannot block or quarantine; inline mode routes mail through xorlab and can.
> Write the product name as lowercase 'xorlab'. Use the documented component names: xorlab Control Center (XCC), xorlab MTA, xorlab Sandbox (DANA), xorlab Natural Language Understanding (NLU). After the first mention, use the short forms XCC, MTA, Sandbox, and NLU. Do not use DANA as a standalone name for the Sandbox, but keep it where it is a literal string in configuration keys, container names, and hostnames.
> Do not invent configuration keys, rule parameters, list names, log properties, or API fields. If a value is not present in this documentation, say that it is not documented rather than guessing.

# Expert Editor

Expert Editor is your basic admin tool in xorlab Control Center (XCC). This tool allows configuring and tweaking your XSP instance by editing configuration files. It not only opens the files for editing, but also provides basic file and folder operations, such as creating a new file/folder, or renaming, moving, and deleting existing files and folders.

## Accessing Expert Editor

1. Log in to the Control Center GUI with the URL address and credentials provided by xorlab.
2. On the main screen, click the tiles icon next to your account name and click the **Admin** icon in the displayed menu:
   <img src="https://mintcdn.com/xorlab/O_O2TUa6eRBR54aI/9.0/assets/selecting-admin-panel.png?fit=max&auto=format&n=O_O2TUa6eRBR54aI&q=85&s=2fa1da38cdad0e56cd431e1335d5da8e" alt="Selecting the Admin panel" width="2481" height="846" data-path="9.0/assets/selecting-admin-panel.png" />
3. On the resulting **Admin** page, click the **Expert** tile:
   <img src="https://mintcdn.com/xorlab/O_O2TUa6eRBR54aI/9.0/assets/selecting-expert-settings.png?fit=max&auto=format&n=O_O2TUa6eRBR54aI&q=85&s=93190dff37dd7b3f1b7fa0cc82ac5c6d" alt="Selecting the Expert Editor" width="2480" height="1102" data-path="9.0/assets/selecting-expert-settings.png" />

This opens Expert Editor and you can see the folder tree:

<img src="https://mintcdn.com/xorlab/O_O2TUa6eRBR54aI/9.0/assets/expert-editor.png?fit=max&auto=format&n=O_O2TUa6eRBR54aI&q=85&s=bb4a5ac2dc45c9406ae3ed39f0eb31f0" alt="Expert Editor" width="2740" height="1586" data-path="9.0/assets/expert-editor.png" />

## Using Expert Editor

You can expand folders to navigate to the desired file or simply search for a file in the **Search** box. When you click the file, its content is displayed in the right pane, ready for editing.

All the changes you make are automatically saved, so you don’t have to worry about it. But these saved changes will not be deployed (in other words, will not have any effect) until you click the blue **PUBLISH** button. And until then, you can quickly discard your edits and revert to the original file by clicking the good old **UNDO** button.

### Context menu: file/folder operations

Expert Editor is not limited to editing only. Basic file and folder operations are available in the context menu:

1. Hover the mouse cursor over a folder or file icon. The icon will change to a vertical ellipsis (`…`) or a hamburger:
   <img src="https://mintcdn.com/xorlab/O_O2TUa6eRBR54aI/9.0/assets/hamburger-icon.png?fit=max&auto=format&n=O_O2TUa6eRBR54aI&q=85&s=50eddc9e6d710feced76e3d062ee352e" alt="Hamburger icon for the context menu" width="574" height="468" data-path="9.0/assets/hamburger-icon.png" />
2. Click it to display the context menu. In the case of a folder, you can rename, delete, or move it, and add a new file/folder inside of it. In the case of a file, you can just rename, delete, or move it.
   <img src="https://mintcdn.com/xorlab/O_O2TUa6eRBR54aI/9.0/assets/expert-context-menu.png?fit=max&auto=format&n=O_O2TUa6eRBR54aI&q=85&s=5b8d4cb0f2a456942fc1010082e44d1a" alt="Context menu for a folder" width="642" height="952" data-path="9.0/assets/expert-context-menu.png" />
3. If you choose to rename or add a folder/file, a dialog box for entering a name appears. When you’re done, click **Rename** or **Create**, respectively. If you choose to move the file, you will be asked to select the target location in the resulting dialog box. Click to select the parent folder and click **Move**.
   <img src="https://mintcdn.com/xorlab/O_O2TUa6eRBR54aI/9.0/assets/new-folder-file.png?fit=max&auto=format&n=O_O2TUa6eRBR54aI&q=85&s=725f7d6a306a3e2544c00d65b105997c" alt="New Folder name dialog box" width="2524" height="1178" data-path="9.0/assets/new-folder-file.png" />
   <img src="https://mintcdn.com/xorlab/O_O2TUa6eRBR54aI/9.0/assets/move-file-folder.png?fit=max&auto=format&n=O_O2TUa6eRBR54aI&q=85&s=7d01ecb28aeb644e087e3c2549609436" alt="Move File dialog box" width="2518" height="1384" data-path="9.0/assets/move-file-folder.png" />

### Commenting/uncommenting code

Expert Editor supports a common keyboard shortcut for commenting/uncommenting multiple lines of code. Just select the code to comment out or uncomment and press **Ctrl+/** (**Cmd+/** on macOS).

<Note>
  This shortcut works on lines of code only. It will not work if the selected block includes actual comments.
</Note>
