Parent page: TextEdit Commands
The following pre-packaged resource, derived from this base command, is available:
Set Up Language
Applied Parameters: None
Summary
This command is used to access the Language Setup dialog, from where you can create, edit and manage, a list of languages that can be associated to documents opened in a coding-aware variant of the Text Editor. Each language consists of a syntax scheme, a set of code templates, and a list of file associations.
Access
This command is accessed from the Text Editor (or any coding-aware variant of the Text Editor), by clicking the button on the Utilities toolbar.
Use
After launching the command, the Language Setup dialog appears. The dialog contains a list of languages that are currently defined. Use the dialog to create, duplicate, modify, and remove languages as required. For any given language, the following must be defined:
- File extension associations.
- The syntax of the language.
- Any code templates required.
Tips
- The mapping of a file extension to a language is unique, if you add the same extension to another language, the mapping to its old language is automatically removed.
- If a file with a particular extension is associated with a language, the content of the file is highlighted in accordance with the syntax defined for that language.
- When you duplicate a language you also copy its syntax scheme, as well as all the code templates it contains.
- Code templates are predefined blocks of code that can be automatically placed in a coding-aware text-based file, and are an excellent productivity aid when you are writing code in a particular language.