Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 2.6 KB

README.md

File metadata and controls

50 lines (37 loc) · 2.6 KB

INTERLIS 2.4 language support

CI Release Visual Studio Marketplace Version License

image

Description

A Visual Studio Code extension providing INTERLIS 2.4 language support. The colors of the syntax highlighting are customizable using the colors of the current color theme by default. In addition, this extension provides snippets for commonly used blocks in INTERLIS 2 and a markdown documentation generator.

Features

Syntax Highlighting

The extension associates with .ILI files and applies coloring to the different elements in the file, for example:

  • Object names like
    • TOPIC
    • MODEL
    • CLASS
  • Data types like
    • BOOLEAN
    • TEXT
  • Keywords like
    • ASSOCIATION
    • ABSTRACT
    • EXTENDS
  • String patterns like
    • {...}

Snippets

The extension provides interactive snippets for commonly used INTERLIS 2 blocks. To use the snippets start by typing the name of the block until VSC provides the correct option as suggestion. Select the snippet with the arrow keys and hit ENTER to insert. Navigate through the snippet and its options with TAB.

Supported snippets include: MODEL, TOPIC, CLASS, STRUCTURE, ASSOCIATION and Role

File associations

To make VS Code treat other file extensions than the default .ili as INTERLIS2 files, add the following to the user settings:

"files.associations": {
    "*.ili*": "INTERLIS2"
},

The example above associates extensions such as .ili with this extension.

Markdown documentation

The extension provides the command "Generate markdown documentation" to create markdown code from an INTERLIS 2 file describing the classes and their attributes. This command can be executed from the Command Palette (Default hotkey Ctrl+Shift+P) or the context menu of an open INTERLIS 2 file.