Altium NEXUS Documentation

SetupLanguage

Created: June 5, 2017 | Updated: June 5, 2017

Parent page: TextEdit Commands

The following pre-packaged resource, derived from this base command, is available:


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 Text 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

  1. 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.
  2. 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.
  3. When you duplicate a language you also copy its syntax scheme, as well as all the code templates it contains.
  4. 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.

 

Found an issue with this document? Highlight the area, then use Ctrl+Enter to report it.

お問合せ

お近くの営業所にお問合せください。

We're sorry to hear the article wasn't helpful to you.
Could you take a moment to tell us why?
200 characters remaining
You are reporting an issue with the following selected text
and/or image within the active document: