Beruflich Dokumente
Kultur Dokumente
A variety of code editor features can be customized through setting properties in the code
editor configuration files.
Configuration Files
Code editor configuration files are located in the Configdirectory under the Enterprise
Architect installation directory. The Config directory contains a configuration file for
each language supported by Enterprise Architect.
Loading of code editor properties is done in two steps
1. The global configuration file global.propertiesis parsed
2. The language specific configuration file (eg javaSyntax.properties,
cppSyntax.properties) is parsed. In the event that a property assignment
is specified in both the global and language specific configuration, the language
specific version will be used. Thus the language specific configuration file can be
used to override any properties set in the global configuration file.
The configuration file syntax consists of one key/value pair per line. The key and value
are seperated by the equals (=) operator. Lines that begin with the hash (#) or exclamation
(!) symbols are regarded as comment lines and are not parsed.
NOTE: Property assignments that span over multiple lines are not supported.
Configuration Property Types
A Configuration Property will have a certain type, which determines the format its value
should take. The table below lists the set of valid Configuration Property Types
Type
Description
boolean
number
string
style
Configuration Properties
Configuration properties fall into either one of two categories: GeneralPropertiesor
Lexer Specific Properties.
The lexer is the mechanism used to lexically analyze the editor contents and advise the
editor to apply various styles according to its rules. Generally a lexer applies to a specific
language, however semantically similar languages (such as C++ and Java) may share
lexers.
A lexer will often define its own unique set of style classes (eg operators, keywords,
pragma statements). Thus Lexer SpecificProperties specify how these unique classes are
to be styled.
Conversely, General Properties can be set in all configuration files regardless of which
lexer is used.
General Properties
Property
Type
Description
AUTO_BRACKETS
boolean
BRACE_HIGHLIGHTING
boolean
COMMENT_LINECOMMENT_TOKEN
string
COMMENT_STREAMCOMMENTSTART_TOKEN
string
COMMENT_STREAMCOMMENTEND_TOKEN
string
FOLD_AT_ELSE
boolean
FOLD_COMMENT
boolean
FOLD_COMPACT
boolean
FOLD_PREPROCESSOR
boolean
LEXER
string
INDENT_AUTOMATIC
INDENT_BLOCK_START_CHAR
INDENT_BLOCK_END_CHAR
INDENT_GUIDES
INDENT_STATEMENT_END
INDENT_STATEMENT_KEYWORDS
boolean
string
string
boolean
string
string
INDENT_STATEMENT_LOOKBACK
number
INDENT_WIDTH
number
INTELLISENSE_AUTOCOMPLETE_ITEMS
number
MARGIN_COLUMN
number
STYLE_BRACEBAD
STYLE_BRACELIGHT
style
style
STYLE_CALLTIP
TAB_USE_SPACES
style
boolean
TAB_WIDTH
WORD_CHARACTERS
number
string
For example:
case default
do else for if
private protected public while
Specifies the maximum number of lines the editor
will check back on when calculating automatic
indentation.
Sets the size of indentation with respect to the
width of a space character. Setting this value to 0
will result in the indentation size being set to the
same size as a tab.
Sets the maximum number of items that are visible
in the autocomplete list. If the amount of items in
the autocomplete list exceeds this value a vertical
scrollbar will be shown.
Specifies which line the margin line is drawn at. A
value of 0 will turn the margin line off.
Specifies the style for an unmatched brace.
Specifies the style for a currently highlighted
brace.
Specifies the style for intellisense calltips.
Specifies whether indentation is based soley on
spaces. If set to false indentation will be based on a
combination of tabs and spaces.
Defines the width of a tab in characters.
Within the context of the editor, the notion of a
word is defined as a contiguous sequence of
characters that are found in the set of characters
defined by the WORD_CHARACTERS property.
Any editor functions that operate on words refer to
this character set when determining what the word
is.
WHITESPACE_VISIBLE
boolean
The following sections list the Lexer Specific Propertiesfor each lexer.
Ada Lexer Properties
The Ada lexer (LEXER=ada) is used by the common code editor control to decorate code
written in the Ada language. Lexer Specific Properties for the Ada Lexer are listed in the
following table.
Property
Type
Description
KEYWORDS
string
STYLE_CHARACTER
STYLE_CHARACTEREOL
style
style
STYLE_COMMENTLINE
STYLE_DEFAULT
STYLE_DELIMITER
STYLE_IDENTIFIER
STYLE_ILLEGAL
style
style
style
style
style
STYLE_LABEL
style
STYLE_NUMBER
STYLE_STRING
STYLE_STRINGEOL
style
style
style
STYLE_WHITESPACE
STYLE_WORD
style
style
The Bat lexer (LEXER=bat) is used by the common code editor control to decorate the
commands of DOS-style batch files. Lexer Specific Properties for the Bat Lexer are listed
in the following table.
Property
Type
Description
COMMANDS
string
KEYWORDS
string
STYLE_COMMAND
style
STYLE_COMMENT
STYLE_DEFAULTS
STYLE_HIDE
STYLE_IDENTIFIER
STYLE_LABEL
STYLE_OPERATOR
STYLE_WHITESPACE
STYLE_WORD
style
style
style
style
style
style
style
style
The Cpp lexer (LEXER=cpp) is used used by the common code editor control to decorate
code written in C++ style languages (eg C++, Java, JavaScript, C#) . Lexer Specific
Properties for the Cpp Lexer are listed in the following table.
Property
Type
Description
CASE_SENSITIVE
KEYWORDS
KEYWORDS_DOC_COMMENT
KEYWORDS_EXTENDED
STYLE_CHARACTER
STYLE_COMMENT
STYLE_COMMENTDOC
STYLE_COMMENTDOCKEYWORD
STYLE_COMMENTDOCKEYWORDERROR
STYLE_COMMENTLINE
STYLE_COMMENTLINEDOC
STYLE_DEFAULT
STYLE_IDENTIFIER
STYLE_NUMBER
STYLE_OPERATOR
STYLE_PREPROCESSOR
STYLE_REGEX
STYLE_STRING
STYLE_STRINGEOL
STYLE_UUID
STYLE_VERBATIM
STYLE_WHITESPACE
STYLE_WORD
STYLE_WORD_EXTENDED
STYLING_WITHIN_PREPROCESSOR
The Diff lexer (LEXER=diff) is used by the common code editor control to decorate the
results of the GNU diff utility. Lexer Specific Properties for the Diff Lexer are listed in
the following table.
Property
Type
Description
STYLE_ADDED
STYLE_COMMAND
STYLE_COMMENT
STYLE_DEFAULT
style
style
style
style
STYLE_DELETED
STYLE_HEADER
STYLE_POSITION
STYLE_WHITESPACE
style
style
style
style
The EACGT lexer (LEXER=eacgt) is used by the common code editor control to decorate
Enterprise Architect's Code Generation and Transformation templates. Lexer Specific
Properties for the EACGT Lexer are listed in the following table. Please consult the Code
Template Syntax help section for more details on the different template macros and
variables.
Property
Type
Description
CONTROL_MACROS
string
FIELD_MACROS
string
FUNCTION_MACROS
string
TAGGEDVALUE_MACROS
string
TEMPLATE_MACROS
string
STYLE_CONTROL_MACRO
STYLE_DEFAULT
STYLE_DIRECTIVE
style
style
style
STYLE_FIELD_MACRO
STYLE_FUNCTION_MACRO
STYLE_IDENTIFIER
STYLE_STRING
STYLE_TAGGEDVALUE_MACRO
STYLE_TEMPLATE_MACRO
STYLE_VARIABLE
style
style
style
style
style
style
style
The HTML lexer (LEXER=html) is used used by the common code editor control to
decorate the source code of HTML documents and any embedded JavaScript, VBScript
or PHP scripts contained within. The HTML lexer can also be used to decorate DTD
files, and self contained PHP scripts.
Lexer Specific Properties for the HTML Lexer are listed in the following table.
Property
Type
Description
INDENTATION_GUIDE
string
KEYWORDS
string
KEYWORDS_JAVASCRIPT
string
KEYWORDS_VBSCRIPT
string
KEYWORDS_PHP
string
KEYWORDS_DTD
string
STYLE_DEFAULT
STYLE_TAG
STYLE_TAGUNKNOWN
style
style
style
STYLE_ATTRIBUTE
STYLE_ATTRIBUTEUNKNOWN
style
style
STYLE_NUMBER
STYLE_DOUBLESTRING
style
style
STYLE_SINGLESTRING
style
STYLE_OTHER
style
STYLE_COMMENT
style
STYLE_ENTITY
STYLE_TAGEND
STYLE_XMLDECL
style
style
style
STYLE_SCRIPT
STYLE_ASP
STYLE_ASPAT
STYLE_CDATA
STYLE_QUESTION
style
style
style
style
style
STYLE_UNQUOTEDVALUE
STYLE_JSPCOMMENT
style
style
STYLE_SGML_1ST_PARAM
STYLE_SGML_1ST_PARAM_COMMENT
STYLE_SGML_COMMAND
STYLE_SGML_COMMENT
STYLE_SGML_DEFAULT
style
STYLE_SGML_DOUBLESTRING
STYLE_SGML_ENTITY
STYLE_SGML_ERROR
STYLE_SGML_SIMPLESTRING
STYLE_SGML_SPECIAL
STYLE_JS_COMMENT
STYLE_JS_COMMENTDOC
STYLE_JS_COMMENTLINE
STYLE_JS_DEFAULT
STYLE_JS_DOUBLESTRING
STYLE_JS_KEYWORD
STYLE_JS_NUMBER
STYLE_JS_OPERATOR
STYLE_JS_REGEX
STYLE_JS_SINGLESTRING
STYLE_JS_START
STYLE_JS_STRINGEOL
STYLE_JS_WORD
STYLE_JSA_COMMENT
STYLE_JSA_COMMENTDOC
STYLE_JSA_COMMENTLINE
STYLE_JSA_DEFAULT
STYLE_JSA_DOUBLESTRING
STYLE_JSA_KEYWORD
STYLE_JSA_NUMBER
STYLE_JSA_OPERATOR
STYLE_JSA_REGEX
STYLE_JSA_SINGLESTRING
STYLE_JSA_START
STYLE_JSA_STRINGEOL
STYLE_JSA_WORD
STYLE_VB_COMMENTLINE
STYLE_VB_DEFAULT
STYLE_VB_DOUBLESTRING
STYLE_VB_IDENTIFIER
STYLE_VB_KEYWORD
STYLE_VB_NUMBER
STYLE_VB_START
STYLE_VB_STRINGEOL
STYLE_PHP_DEFAULT
STYLE_PHP_COMPLEX
STYLE_PHP_DOUBLESTRING
STYLE_PHP_SINGLESTRING
STYLE_PHP_KEYWORD
STYLE_PHP_NUMBER
STYLE_PHP_VARIABLE
STYLE_PHP_COMMENT
STYLE_PHP_COMMENTLINE
STYLE_PHP_STRINGVARIABLE
STYLE_PHP_OPERATOR
style
style
style
style
The MBNF lexer (LEXER=mbnf) is used by the common code editor control to decorate
grammar files written in Modified Backus-Naur Form. Lexer Specific Properties for the
Type
Description
STYLE_COMMENT
STYLE_DEFAULT
STYLE_HIGHLIGHT
STYLE_PRAGMA
STYLE_STRING
style
style
style
style
style
The Pascal lexer (LEXER=pascal) is used by the common code editor control to decorate
code written in the Pascal and Delphi languages. Lexer Specific Properties for the Pascal
Lexer are listed in the following table.
Property
Type
Description
CLASSWORDS
string
KEYWORDS
string
STYLE_CHARACTER
STYLE_COMMENT
style
style
STYLE_COMMENTDOC
style
STYLE_COMMENTLINE
style
STYLE_DEFAULT
STYLE_INLINEASM
STYLE_OPERATOR
STYLE_PREPROCESSOR
STYLE_STRING
STYLE_WHITESPACE
STYLE_WORD
style
style
style
style
style
style
style
The Props lexer (LEXER=props) is used by the common code editor control to decorate
Windows style property files. Lexer Specific Properties for the Props Lexer are listed in
the following table.
Property
Type
Description
STYLE_ASSIGNMENT
STYLE_COMMENT
style
style
STYLE_DEFAULT
STYLE_DEFVAL
STYLE_KEY
STYLE_SECTION
STYLE_WHITESPACE
style
style
style
style
style
The Python lexer (LEXER=python) is used by the common code editor control to decorate
code written in the Python language. Lexer Specific Properties for the Python Lexer are
listed in the following table.
Property
Type
Description
KEYWORDS
string
STYLE_CHARACTER
STYLE_CLASSNAME
STYLE_COMMENT
STYLE_COMMENTLINE
style
style
style
style
STYLE_DECORATOR
STYLE_DEFAULT
STYLE_DEFNAME
STYLE_NUMBER
STYLE_OPERATOR
STYLE_STRING
STYLE_STRINGEOL
style
style
style
style
style
style
style
STYLE_TRIPLEDOUBLESTRING
style
STYLE_TRIPLESINGLESTRING
style
STYLE_WHITESPACE
STYLE_WORD
style
style
The SQL lexer (LEXER=sql) is used by the common code editor control to decorate
queries written in the Structured Query Language. Lexer Specific Properties for the SQL
Lexer are listed in the following table.
Property
Type
Description
KEYWORDS
string
STYLE_CHARACTER
STYLE_COMMENT
style
style
STYLE_COMMENTDOC
STYLE_COMMENTDOC_KEYWORD
STYLE_COMMENTDOC_KEYWORD_ERROR
STYLE_COMMENTLINE
style
STYLE_COMMENTLINEDOC
style
style
STYLE_DEFAULT
STYLE_IDENTIFIER
STYLE_OPERATOR
STYLE_STRING
STYLE_STRINGEOL
style
style
style
style
style
STYLE_WHITESPACE
STYLE_WORD
style
style
TABLES
string
VB Lexer Properties
The VB lexer (LEXER=vb) is used by the common code editor control to decorate code
written in the Visual Basic and VB.NET languages. Lexer Specific Properties for the VB
Lexer are listed in the following table.
Property
Type
Description
KEYWORDS
string
KEYWORDS_CONSTANT
string
KEYWORDS_EXTENDED
string
STYLE_COMMENT
style
STYLE_DATE
STYLE_DEFAULT
STYLE_IDENTIFIER
STYLE_NUMBER
STYLE_OPERATOR
STYLE_PREPROCESSOR
STYLE_STRING
STYLE_STRINGEOL
style
style
style
style
style
style
style
style
STYLE_WORD
style
STYLE_WORD_CONSTANT
style
STYLE_WORD_EXTENDED
style
The VBScript lexer (LEXER=vbscript) is used by the common code editor control to
decorate scripts written in the VBScript language.
The VBScript lexer shares the same Lexer Specific Properties as the VB lexer.
The Verilog lexer (LEXER=verilog) is used by the common code editor control to
decorate code written in the Verilog language. Lexer Specific Properties for the Verilog
Lexer are listed in the following table.
Property
Type
Description
KEYWORDS
string
KEYWORDS_EXTENDED
string
STYLE_COMMENT
style
STYLE_COMMENTLINE
style
STYLE_COMMENTLINEBANG
style
STYLE_DEFAULT
STYLE_IDENTIFIER
STYLE_NUMBER
STYLE_OPERATOR
STYLE_PREPROCESSOR
STYLE_STRING
STYLE_STRINGEOL
style
style
style
style
style
style
style
STYLE_TASK
style
STYLE_TASK_EXTENDED
style
STYLE_WHITESPACE
STYLE_WORD
style
style
STYLE_WORD_EXTENDED
style
TASKS
string
TASKS_EXTENDED
string
The VHDL lexer (LEXER=vhdl) is used by the common code editor control to decorate
code written in the VHSIC Hardware Description Language. Lexer Specific Properties
for the VHDL Lexer are listed in the following table.
Property
Type
Description
KEYWORDS
string
STANDARD_OPERATORS
string
STANDARD_ATTRIBUTES
string
STANDARD_FUNCTIONS
string
STANDARD_PACKAGES
string
STANDARD_TYPES
string
KEYWORDS_EXTENDED
string
STYLE_DEFAULT
STYLE_WHITESPACE
STYLE_COMMENT
style
style
style
STYLE_COMMENTLINEBANG
style
STYLE_NUMBER
STYLE_STRING
STYLE_OPERATOR
STYLE_IDENTIFIER
STYLE_STRINGEOL
style
style
style
style
style
STYLE_WORD
style
STYLE_WORD_OPERATOR
style
STYLE_WORD_ATTRIBUTE
style
STYLE_WORD_FUNCTION
style
STYLE_WORD_PACKAGE
style
STYLE_WORD_TYPE
style
KEYWORDS_EXTENDED
string
The XML lexer (LEXER=xml) is used by the common code editor control to decorate
XML documents.
The XML lexer shares the same Lexer Specific Properties as the HTML lexer.