TextEditor (gb.form.editor)

This control is an enhanced text editor with syntax highlighting support.
This editor has the following special features:
-
Source code syntax highlighting for Gambas, HTML, CSS, C, C++, JavaScript, SQL and diff files.
-
Fully managed editing including Copy, Paste, Cut, Undo and Redo.
-
Line wrapping!
-
Many IDE selectable display features (Line numbering, block folding indicators, brace matching indicators...
-
Coding enhancements such as bookmarks, tab expansion, breakpoint indicatiors...
-
...and much more!
This class inherits
UserControl
in gb.qt4.
This class is .
This class acts like a array.
|
Guess where it's used within Gambas itself
Do not use the normal Background and Foreground properties to change the look of a TextEditor.
To change background colors or other highlighting styles within the Editor control you must use the Styles property and a Highlight constant.
For example:
TextEditor1.Styles[Highlight.Background].Color = Color.RGB(200, 200, 200)
See the Highlight class for all available constants.