SpaceTextEditor(Space)

base classes — bpy_struct, Space

class bpy.types.SpaceTextEditor(Space)

Text editor space data

find_text

Text to search for with the find tool

Type :string, default “”
font_size

Font size to use for displaying the text

Type :int in [8, 32], default 0
replace_text

Text to replace selected text with using the replace tool

Type :string, default “”
show_line_highlight

Highlight the current line

Type :boolean, default False
show_line_numbers

Show line numbers next to the text

Type :boolean, default False
show_syntax_highlight

Syntax highlight for scripting

Type :boolean, default False
show_word_wrap

Wrap words if there is not enough horizontal space

Type :boolean, default False
tab_width

Number of spaces to display tabs with

Type :int in [2, 8], default 0
text

Text displayed and edited in this space

Type :Text
use_find_all

Search in all text datablocks, instead of only the active one

Type :boolean, default False
use_find_wrap

Search again from the start of the file when reaching the end

Type :boolean, default False
use_live_edit

Run python while editing

Type :boolean, default False
use_overwrite

Overwrite characters when typing rather than inserting them

Type :boolean, default False

Inherited Properties

Inherited Functions

Previous topic

SpaceSequenceEditor(Space)

Next topic

SpaceTimeline(Space)