Text Editor

Text Editor is a highly versatile text and code editor, allowing you to access and quickly edit text files or codes on your Synology NAS right from a web browser.

Note:

  • For Internet Explorer, Text Editor only supports version 9 and above.

File Management

To create new files:

Click File and choose New. A new empty tab will appear with the title New Document.txt.

To open files from Text Editor:

Simply click File and choose Open. A dialog will appear and you can select a file with specific character encoding that has to be opened in a tab. If the file was already opened, Text Editor will show you that file in its current state.

To open files from File Station:

In File Station, simply right-click on the selected file and then click Open with Text Editor from the context menu. If the file was already opened, Text Editor will show you that file in its current state. Another way to open a file is to drag one or multiple files from File Station into Text Editor using the cursor.

Note:

  • Text Editor cannot open a file that exceeds 10 MB.

To save files:

Simply click File and choose Save. If it is an existing file, it will be overwritten with the current contents. If you want to save all the files you have opened at once, you can go to File > Save All. If the file has yet no name (a new file), or you selected File > Save As, a dialog will pop up, asking you for the name of the file. You can then choose the location, the file name, and the encoding to save for the file.

To close files:

Simply click File and choose Close. Another way to close a file is clicking on the close button on each tab. If you have any unsaved data in a file, Text Editor will always prompt you if you would like to close it without saving those changes.

Note:

  • You can save files with specific character encoding to support bi-directional languages. You can also specify an encoding when opening a file, so that Text Editor displays the file correctly.

Editing

  • Standard operations
    The edit control supports simple Undo, Redo, and Select All. These operations can be found in most editors and perform in very similar ways. You can perform these operations by selecting the corresponding menu item in the Edit menu. Additionally, by default the Cut, Copy, and Paste options are available through the browser's context menu.
  • Indentation
    Indenting text is a common operation when dealing with source code editing. Indentation is the addition of extra whitespace at the start of a line to separate blocks of text, adding a hierarchy. Normally when editing, pressing the Tab key will insert a tab character at the current location. However, if some text is selected, pressing Tab key will add additional whitespace at the beginning of each line that has any selected text, allowing you to indent entire blocks of text at once. Pressing Shift and Tab at once will remove the indentation.
  • Overtype
    You can enable and disable overtyping by pressing the Insert key. That is, instead of inserting characters at the cursor, you replace them. The displayed cursor will change shape with overtype status accordingly.
  • Column mode editing
    A special way of editing files is column mode editing. This means that text can be selected in columns, rather than rows. To initiate a column mode selection, depress the Alt key when selecting text, moving the cursor downwards or upwards as needed. When text is selected in this so-called column mode, typing will change each selected column of characters into the typed character.

Searching

  • Normal search
    You can search text as in most programs using the Find dialog. You can open this dialog by selecting Search > Find. This dialog will always stay on top of the text, and you cannot keep on editing the text if it is opened. In the search field, type the text you want to find.
  • Replacing
    You can find and replace text as in most programs using the Replace dialog. You can open this dialog by selecting Search > Replace. Replace All will replace all occurrences of the query with the replacement text.
  • Case sensitive
    It enforces that hits have exactly the same case as the query. If this is not ticked, the search is case insensitive.
  • Whole word only
    It will result in a hit only if the match consists of an entire word, not part of it. For example, if you look for "exam" with Whole word only, then you will find "exam" only, instead of "example".
  • Regular expression
    The query will be handled like a regular expression.

What is regular expression?

  • A regular expression is a sequence of characters that forms a search pattern for powerful time-saving technique. A very simple use of a regular expression would be to locate the same word spelled two different ways in a text editor, for example M[ea]rry.

Style Configurator

The style configurator is primarily used to control the appearance of the text in Text Editor.
The bottom-right drop-down list contains all the supported programming language that can be styled to help you build a suitable coding environment.

Preferences

  • Show invisible characters
    If ticked, space, tab, newline, or return characters will be shown.
  • Show indent guides
    If ticked, indent guides will be shown. It is useful for aligning codes in coding language.
  • Highlight current line
    If ticked, the line at which the caret is present will be drawn with a special background color.
  • Highlight selected word
    If ticked, all words (not partial) within the same text file matching the selected word will be automatically outlined.
  • Show line numbers
    If ticked, the line numbers will be displayed.
  • Enable code folding
    If ticked, certain lines of your codes can be hidden based on certain traits. This feature works well for structured languages such as C++ or XML. When Hide disclosure widgets automatically is ticked, certain lines of codes will be folded automatically. You can also choose to mark only the starting bracket or both starting and closing brackets with the disclosure widgets.
  • Word Wrap
    Specify whether your text is wrapped at the window's edge or at a specific column number without inserting a hard return.
  • Append closing characters automatically
    If ticked, closing brackets (characters) will be appended automatically in your codes.
  • Insert spaces instead of tabs
    If ticked, pressing the Tab key will insert space characters instead of a tab character. Tab width can be defined by the number of characters at Preferences > Font and color.
  • Default encoding
    The default encoding is used to save files with specific character encoding to support bi-directional languages. You can also specify an encoding when opening a file, so that Text Editor displays the file correctly.
  • Font and Color
    Tab width, Font size, and Theme can be customized according to your personal preference. Tab width is defined by the number of space characters.

Supported File Formats:

  • Text Editor only supports plain text files. Text files with rich formatting like *.doc and *.pdf will not be supported.

Keyboard Shortcuts

You can use the following keyboard shortcuts to manage and edit files in Text Editor.

  • To save files: Press Ctrl + S.
  • To save files with a different name: Press Ctrl + Shift + S.
  • To create new files: Press Ctrl + Alt + N.
  • To open files: Press Ctrl + Alt + O.
  • To search text: Press Ctrl + Alt + F.
  • To replace text: Press Ctrl + Alt + H.
  • To close tabs: Press Ctrl + Q.
  • To switch tabs: Press Alt and enter a number from 1 to 9.
File Management
Editing
Searching
Style Configurator
Preferences
Keyboard Shortcuts