本文介绍了JavaFX代码编辑器,内容为Highlighter for Java Code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在JavaFX中编写一个文本编辑器,它类似于Eclipse / Netbeans IDE,以突出显示Java代码。
任何人都可以建议如何实现它或任何人以前做过这个。

I want to write a text editor in JavaFX which acts similar to Eclipse/Netbeans IDE to highlight the Java code.Can anyone suggest as to how it can be achieved or anyone has done this previously.

谢谢。

推荐答案

据我所知,没有用于代码突出显示/编辑的纯JavaFX库,所以如果你想在JavaFX中实现它,你将会从类似的Swing进行翻译(或其他)项目,或者你自己。

There's no pure JavaFX libraries for the code highlighting / editing as far as I know, so if you want to implement it in JavaFX you're going to be translating from a similar Swing (or other) project, or you're on your own.

但是,如果你想实现这个目的,你可以使用这样的Javascript库并将其包装在WebView中 - Jewelsea(经常在这里摇摆)已经做到这一点并且。

However, you can use such a Javascript library and wrap it in a WebView if you want to achieve this - Jewelsea (who often swings by here) has done just this and explained it rather nicely here.

这篇关于JavaFX代码编辑器,内容为Highlighter for Java Code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 07:32