Reputation: 2492
Currently, php plugin/implementation in intellij platform allows to register own parser for phpdoc tags. (PhpDocTagParserRegistry.register("@property", new PhpDocPropertyTagParser());
). This allows to create own psi structures for certaing tags.
Is there any way that would allow to extend php highlighter (add a layer) that could highlight own phpdoc tags?
Upvotes: 0
Views: 371
Reputation: 97168
You can provide an implementation of com.intellij.lang.annotation.Annotator to extend syntax highlighting for any language in IntelliJ IDEA.
For every element which you need to highlight, you need to call AnnotationHolder.createInfoAnnotation()
, and then call setTextAttributes()
on the returned Annotation
object.
Upvotes: 1