Skip to main content
Version: TOS 7

Text Editor

The Text Editor is a lightweight and efficient code and text processing tool. It supports online viewing and editing of various plain text file formats. Equipped with intelligent language recognition and syntax highlighting, it automatically distinguishes code structures to enhance code reading and review efficiency. It adapts to multiple scenarios such as developers' daily coding, configuration file modification, and general text editing.

Basic File Operations

New File

Two creation methods are provided to suit different operating habits:

  • Create via File Management: Enter the system file management interface, click the "New" button, and select to create a blank TXT text file. After creation, double-click the file to open it quickly for editing.
  • Create Directly within the Application: Launch the Text Editor from the desktop "All Applications", edit the content, and then use the "Save" operation. A new TXT text file will be automatically generated and stored.

Edit Operations

Supports a full set of standard editing commands to meet daily text processing needs, including but not limited to: copy, cut, paste, undo, redo, select all, indent adjustment, and other common operations. The operation logic is consistent with mainstream editors, reducing the learning curve.

Save File

Click the "Save" option in the file menu to retain the content:

  • If it is a newly created file, saving will automatically generate a TXT format file and prompt you to choose a storage path.
  • If it is an existing file, saving will overwrite the original file content with the currently edited content. It is recommended to back up important files in advance.

Intelligent Language Recognition and Highlighting

Automatic Recognition Mode

When loading a file, the editor automatically recognizes the corresponding programming language based on the file extension and switches to the dedicated syntax highlighting mode. For example, when loading a file with a .js extension, it will automatically adapt to JavaScript syntax rules, applying differentiated color highlighting to keywords (such as function, const), strings, numbers, comments, etc., to clearly distinguish the code structure.

Manual Switching Mode

For files without an extension or scenarios requiring custom syntax rules, you can manually switch the language mode: Click the [txt] drop-down menu at the top of the editor interface and select the target programming language from the list. The text content will then be rendered according to the corresponding syntax rules.

Supported File Formats

The following are the file formats directly supported by the editor for opening, covering multiple scenarios such as web development, programming scripts, and configuration files. For file formats not listed, the editor will default to using UTF-8 encoding and plain text format to attempt to parse and open them, ensuring maximum file compatibility.

  • Web Development: .html, .xml, .js, .css
  • Programming & Scripts: .py, .sh, .c, .cpp, .cs, .ts, .rs, .java, .sql, .php, .go
  • Configuration Files: .yaml, .yml, .json
  • Markup Languages & Plain Text: .md, .txt
  • Log Files: .log
Note
  1. When editing system configuration files, it is recommended to back up the original file in advance to avoid system abnormalities caused by incorrect operations.
  2. Syntax highlighting is only a visual aid and does not affect the file's own encoding or execution logic.
  3. When opening non-compatible format files with UTF-8 encoding, garbled characters may appear. It is recommended to confirm the file's original encoding and then try the corresponding parsing method.