How to get COLORED text for the PSI element Follow
I want to display colored source of a Java method, and I need to produce HTML like below for this:
for ( ]]>
I can use a JavaResursiveVisitor and EditorColorsManager for this, but its better to use some helper method that does this :)
Is there some helper method to get HTML (that represents colored Java source) by PsiElement?
Please sign in to leave a comment.
No, there is no public API in IDEA for this.
"Develop with Pleasure!"