This editor can be used to write Python scripts, Open Shading Language scripts, or just plain text notes. To open it, you can switch to the Scripting workspace or press Shift-F11 to replace the current editor.
The newly opened Text editor is empty, with a very simple header. More options become available when a text file is created or opened.
Text header.
Text header with a text loaded.
Editor Type
The standard editor selection button.
Menus
Editor’s menus.
Resolve Conflict
Resolves modified file conflicts when an external text file is updated from another program.
Reload from Disk
Opens the file from drive again, overriding any local changes.
Make Text Internal
Converts the external text data-block into an internal one.
Ignore
Hides the warning message until the external text file is modified externally again.
Text
A data-block menu to select a text or to create a new one. After that the header will change.
Run Script (play icon)
Executes the text as a Python script Alt-P. See Template Menu.
Show
Toggles for line numbers, word wrapping, and syntax highlighting.
Script Node Update (refresh icon)
When an OSL-file is opened, this updates the Shader Script node with new options and sockets from the script.
Sidebar Ctrl-T
Show or hide the Sidebar.
Line Numbers
Displays the text file’s line numbers on the left of the Main View.
Word Wrap
Wraps words that don’t fit into the horizontal space by pushing them to a new “pseudo line”.
Syntax Highlight
Colors special words, in the Main View, that are used in the Python programming language.
Highlight Line
Emphasizes the active line by altering the color of the background.
Zoom In/Out
Increase/decrease the font size of text in the main view.
Navigation
Top Ctrl-Home
Moves the view and cursor to the start of the text file.
Bottom Ctrl-End
Moves the view and cursor to the end of the text file.
Line Begin Home
Moves the cursor to the start of the current line.
Line End End
Moves the cursor to the end of the current line.

