Implementing line number display and code folding in the LanguageTextField class
Answered
I need a json data browser. I have implemented syntax highlighting.
But this is not enough, I also need to display the line number and foldable for better reading
This is my current code:
this.editorPane = new LanguageTextField(JsonLanguage.INSTANCE, project, "", false);
templateDataScrollPane.setViewportView(this.editorPane);
this.editorPane.setText(jsonString);

Please sign in to leave a comment.
Or I can use other class, please tell me, thanks
You can access Editor's settings and set proper configuration by your own:
@Jakub Chrzanowski Yes, I have found it, thank you!