大家下午好,我在编码方面不是很有经验,经过长时间的RSyntaxTextArea实验,我仍然无法改变Gutter。我不知道如何编码Gutter颜色,我想将Gutter颜色更改为这个新颜色(9,11,16),有人能帮我找出这个吗?
发布于 2021-01-31 11:04:04
我找到了答案,编辑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();
}
}https://stackoverflow.com/questions/65976186
复制相似问题