Tutorial on adding/extending existing language in IntelliJ (or PHPStorm). Follow
Hi.
I would like to add custom plugin to PHPStorm (or maybe make it language independent) and I am looking for a tutorial on analyzing/extending/action on PSI in existing language. In the documentation I found only documents about creating new language.
I just need to analyze source code and if there is specific "symbol" detected, do something with the editor.
Thank you and have a nice day.
Please sign in to leave a comment.
You can use an additional Annotator to provide additional highlighting in existing language.
See http://www.jetbrains.org/intellij/sdk/docs/tutorials/custom_language_support/annotator.html
I just need to analyze source code and if there is specific "symbol" detected, do something with the editor.
Please explain in more detail what you want to achieve
I am not entirely sure yet :)
Somehow hook to file processing on file open in existing language (for now - in php) and when specific function is in the source code then modify for example editor behavior - color or formating or add a marker.
I am not able to find any documentation or tutorial on extending capabilities of existing language plugin.
Have a nice day.