Tools menu

Language Editor

With the language editor you can add or change the language definition that is used for the syntax highlighting in Source Edit.

You select the language definition you want to edit in the drop-down list. You might notice that not all languages that Source Edit supports is listed in this list. This is because some of the original languages, like HTML, XML, Java, C/C++, and Visual Basic for example, that Source Edit supports is hard coded into the editor. You can still edit them though. For example let's say you want to edit the definition for Java. To do that click the New language button and name the new language Java and also select to base this on the the original Java language.



When you create a new language definition a *.lng file will be created. These files will always be used before one of the hard coded definitions. You can also create a new file based on any of the current definitions if you like.

The language editor consists of 7 "pages" on which you add the different keywords, operators, and so on.

Misc Settings

Language Style is either procedural or SGML.

Escape character. If the language uses an escape character type it in this box.

String delimiters. Add all string delimiters to this list. With most lists in the Language Editor you can import a text file that should contain one item per line. You can also export the list to such a file.

Add terminator characters to the list if the language use them.

Keywords

Source Edit separates keywords into regular keywords and scope keywords. In procedural languages scoping keywords are those that you would normally indent the code between. In SGML like languages the scope keywords are the tag characters. There must be a starting and an ending scope keyword.

Operators

This list is for all the operators the language use. You can also use this list to add words you want colorized in a different color then keywords.

Comments

Add both single line comments and starting and ending multiple line comments to the corresponding lists.

Tag Elements

Tag elements only exists between the scoping keywords in SGML style languages.

Tag Attributes

Much like tag elements, attributes also only exists between scoping keywords in SGML style languages.

Tag Entities

Unlike tag elements and attributes, tag entities can exists anywhere in a file. You can also use this list to add words you want colorized with a different color then keywords and operators.