【发布时间】:2017-11-04 13:15:42
【问题描述】:
我正在使用 RichTextFx (CodeArea) 来突出显示我的代码。我想更改某些关键字的文本背景颜色并在下面使用 css:
.parameter {
-rtfx-background-color: yellow;
}
【问题讨论】:
-
这就是我要搜索的内容 `-rtfx-background-color: yellow;` 非常感谢!
-
您必须使用
textArea.setStyle(from,to, "style");之类的东西,其中 textArea 是 RichTextFx (CodeArea) 。对我来说,它就像魅力!
标签: javafx richtextfx