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

# Script editor window

> Write, check, and debug scripts in the ABBYY FlexiCapture script editor, choose a scripting language, customize the error pane, and add custom functions.

The **script editor** allows you to write and edit scripts.

You can select any of the following scripting languages for your script: VBScript, JScript.Compact, JScript, C#.Net, VisualBasic.Net or JScript.Net.

The language you select will remain selected the next time you start the editor.

## Check a script

To check a script, you can:

* Press the F9 key.
* Click the **Check** button on the toolbar.
* Open the **Tools** menu and click **Check Script**.

If no errors are found, the **Script is correct** message appears.

If the script contains errors, they will be listed in the error pane. Double-click an error message in the error pane to jump to the fragment with the error in the script editor.

<Note>
  You can save scripts with errors and fix the errors later.
</Note>

By default, the error pane appears at the bottom of the editor. You can change the size of this pane using the mouse. You can also change its location (see below for details).

## Customize the script editor

Use the **View** menu to customize the appearance of the script editor. The **View** menu contains the following items:

| Command           | Description                                                                                                                                           |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Errors Window** | Changes the position of the error pane in the editor. You can place it at the top, at the bottom (selected by default), on the right, or on the left. |
| **Toolbar**       | Shows or hides the toolbar.                                                                                                                           |
| **Status Bar**    | Shows or hides the status bar.                                                                                                                        |

## Add a custom function

To add a [custom function](/flexi-capture/appendix/scripts/scripts#customfunction), select one of the following global modules in the drop-down list on the toolbar: **Script in \<object\_name\document\_definition\_name>**, **Rule Global Script Module**, or **Export Global Script Module**.

For more information about scripting in ABBYY FlexiCapture, see [Using scripts](/flexi-capture/appendix/scripts/scripts).

<Info>
  You cannot use RTL languages for text constants in the script editor.
</Info>

To add RTL text to your script, use one of the following workarounds:

* Place your RTL text in a [user script message](/flexi-capture/templates/localization) or an environment variable.
* Use an external assembly for your project or Document Definition. For more information, see [External assemblies](/flexi-capture/appendix/scripts/user-assembly).
