Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
大家下午好,我在编码方面不是很有经验,经过长时间的 RSyntaxTextArea 实验后,我仍然无法更改 Gutter。我不知道如何对装订线颜色进行编码,我想将装订线颜色更改为这种新颜色(9、11、16);有人可以帮我解决这个问题吗?
这是库https://github.com/bobbylight/RSyntaxTextArea
这是我的编辑器,当我更改主题时,Gutter 有点破坏氛围
我找到了答案,编辑 xml 文件并不难。
public void changeStyleViaThemeXml(RSyntaxTextArea textArea, String path) { try { Theme theme = Theme.load(getClass().getResourceAsStream(path)); theme.apply(textArea); } catch (IOException ioe) { // Never happens ioe.printStackTrace(); } }