Skip to content

SyntaxEditFrame Control

Description

The Syntax Editor control is a highly sophisticated text editor that supports advanced features such as text block grouping, syntax colorization, line numbers, font types, pre-defined color schemes, bookmarks, breakpoints, and many more advanced features.

For a list of all members defined in this module, see SyntaxEditFrame Members.

Object Model

SyntaxEditFrame Object Model
Data Manager
Line Marks Manager
Auto Complete Window
Global Settings
Current Position
Selection
Print Options
Print Preview Options
Paint Manager

Remarks

Intellisense

Using the configuration files described below, you can add Intellisense to the syntax editor. To activate Intellisense, press Ctrl + Space anytime during editing.

Intellisense

Syntax Colorization

INI file-based syntax colorization allows you to specify specific colorization rules for your text documents. For example, you can specify a different set of colors to be used for .cpp, .h, .html, .asp, etc. files. Color rules can be applied to specific words or groups of words and phrases.

Syntax Colorization

The syntax editor control is capable of enhancing text coloring for a number of specific input file types, i.e., C/C++ source files, HTML files, etc. Users can create and customize their own text file schemes, which are independent of source files. The control contains the main configuration file, which can contain references to any specific configuration files. By default, this file is placed in the same folder as the application executable and is called SyntaxEditor.ini.

The main configuration file contains two blocks with references to input file lexicographic schemes in a specific format (see below) and color themes for the editor, which can be applied to the control editing any file type. The format of the main configuration file is as follows:

[Schemes]
CPP=Schemas/_cpp.schclass ; Visual C++
HTML=Schemas/_HTML_ASP.schclass ; HTML and ASP
schclass=Schemas/_schclass.schclass ; Codejock Schema
NSI=Schemas/_nsi.schclass ; Nullsoft Installer
Pascal=Schemas/_pascal.schclass ; Pascal
INI=Schemas/_ini.schclass ; INI Files
SQL=Schemas/_sql.schclass ; SQL Query

[Themes]
Default=Themes/colorSchema0.ini
Alternative=Themes/colorSchema1.ini

Text Block Grouping

Visual Studio .NET style text block grouping allows you to organize a document of text into blocks that can be hidden with the click of a button. Hidden blocks of text can have a message stating what has been hidden for view. This allows you to minimize the clutter of very large text documents.

Text Block Grouping

Bookmarks

Bookmarks allow you to place a "bookmark" at any position in your text document. You can later cycle through all of your bookmarks to easily return to positions of interest in your document.

Bookmarks

Breakpoints

Visual Studio style breakpoints allow you to place a "breakpoint" at any position in your text document. This can be used for many different reasons; for example, if you have a code compiler, you could use these breakpoints to indicate where code execution will "break" and wait for user interaction.

Breakpoints

Splitter Windows

Visual Studio style splitter windows can be used when using the SyntaxEditFrame version of the editor. Splitter windows allow multiple versions of the same file to be displayed in up to four views at the same time.

Splitter Windows

See Also

SyntaxEditFrame Members


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.