title |
---|
Custom Language Support Tutorial |
In this tutorial we will add support for a .properties language and its usages within Java code.
TIP IntelliJ Platform support for custom languages is discussed in more depth in the Custom Language Support section. Corresponding parts are linked under "Reference" on top of each page in this tutorial.
The example plugin used in this tutorial is the simple_language_plugin
code sample.
This a step-by-step tutorial, and it requires completing each step, in order:
- 1. Prerequisites
- 2. Language and File Type
- 3. Grammar and Parser
- 4. Lexer and Parser Definition
- 5. Syntax Highlighter and Color Settings Page
- 6. PSI Helpers and Utilities
- 7. Annotator
- 8. Line Marker Provider
- 9. Completion Contributor
- 10. Reference Contributor
- 11. Find Usages Provider
- 12. Folding Builder
- 13. Go To Symbol Contributor
- 14. Structure View Factory
- 15. Formatter
- 16. Code Style Settings
- 17. Commenter
- 18. Quick Fix