Child pages
  • Developing Custom Language Plugins for IntelliJ IDEA

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The View | Context Info feature is supported for custom languages since IntelliJ IDEA 10.5. In order for it to work, you need to have a structure view implementation based on a TreeBasedStructureViewBuilder, and additionally to provide an implementation of DeclarationRangeHandler for your language and to register it in the declarationRangeHandler extension point.

Spellchecking can be provided via EP spellchecker.support (SpellcheckingStrategy) where you can return Tokenizer to use, possibly depending on the passed in PsiElement (or EMPTY_TOKENIZER for no spellchecking).

Tutorial

Check out a step-by-step tutorial how to define custom language support on example of ".properties" files: http://confluence.jetbrains.com/display/IntelliJIDEA/Custom+Language+Support

...