mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 17:27:49 +08:00
2.0 KiB
2.0 KiB
layout | title |
---|---|
editable | Custom Language Support Tutorial |
In this tutorial we will add basic support for .properties language and it's usages within Java code.
We will generate parser and PSI elements using Grammar-Kit plugin. The lexer class will be generated with JFlex.
This a step-by-step tutorial and it requires performing every step:
- Prerequisites
- Language and File Type
- Grammar and Parser
- Lexer and Parser Definition
- Syntax Highlighter and Color Settings Page
- PSI Helpers and Utilities
- Annotator
- Line Marker Provider
- Completion Contributor
- Reference Contributor
- Find Usages Provider
- Folding Builder
- Go To Symbol Contributor
- Structure View Factory
- Formatter
- Code Style Settings
- Commenter
- Quick Fix
The final code can be found on GitHub.