mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
1.7 KiB
1.7 KiB
title |
---|
Custom Language Support Tutorial |
{{ page.title }}
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.
For additional information check out the official documentation