/*- CodeArea的根节点样式*/ .code-area { -fx-font-family: "Consolas"; -fx-font-size: 16px; -fx-text-fill: #1d171e; -fx-background-color: #ffffff; } /** - 行号的样式*/ .code-area .line-number { -fx-background-color: #f4f4f4; -fx-text-fill: #999999; -fx-fill: #f4f; -fx-font-size: 18px; -fx-padding: 5 5 5 5px } /*- 光标的样式*/ .code-area .caret { } .code-area .selection { -fx-fill: #cbcacb; } /*-*/ /*选中文本的样式*/ .code-area .highlight { } /*-*/ /*高亮文本的样式*/ .code-area .folded { } /*-*/ /*折叠代码的样式*/ .code-area .folded-indicator { } /*-*/ /*折叠代码指示器的样式*/ .code-area .folded-indicator:hover { } /*-*/ /*折叠代码指示器的鼠标悬停样式*/ .code-area .error { } /*-*/ /*错误文本的样式*/ .code-area .warning { } /*-*/ /*警告文本的样式*/ .code-area .info { } /*-*/ /*信息文本的样式*/ .code-area .keyword { -fx-fill: #d12746 } /*-*/ /*关键字的样式*/ .code-area .operator { -fx-fill: #d12746; } /*-*/ /*运算符的样式*/ .code-area .number { -fx-fill: #27c5d1; } /*-*/ /*数字的样式*/ .code-area .string { } /*-*/ /*字符串的样式*/ .code-area .comment { -fx-fill: #699f45; } /*-*/ /*注释的样式*/ .code-area .type { -fx-fill: red; -fx-text-fill: #ffff55; } /*-*/ /*类型的样式*/ .code-area .function { -fx-fill: red; -fx-text-fill: #ffff55; } /*-*/ /*函数的样式*/ .code-area .parameter { -fx-fill: #d56b6b; } /*-*/ /*参数的样式*/ .code-area .annotation { -fx-fill: #b76bd5; } /*-*/ /*注解的样式*/ .code-area .class { -fx-fill: red; -fx-text-fill: red; } /*-*/ /*类的样式*/ .code-area .interface { -fx-fill: red; -fx-text-fill: red; } /*-*/ /*接口的样式*/ .code-area .enum { } /*-*/ /*枚举的样式*/ .code-area .field { } /*-*/ /*字段的样式*/ .code-area .method { -fx-fill: #8841c0; -fx-text-fill: red; } .code-area .method2 { -fx-fill: #10adeb; -fx-text-fill: red; } /*-*/ /*方法的样式*/ .code-area .constructor { } /*-*/ /*构造函数的样式*/ .code-area .static { } /*-*/ /*静态的样式*/ .code-area .final { } /*-*/ /*最终的样式*/ .code-area .abstract { -fx-fill: red; } /*-*/ /*抽象的样式*/ .code-area .deprecated { -fx-fill: #03e921; } .code-area .html-keyword{ -fx-fill: #66af22; } .code-area .html-keyword2{ -fx-fill: #1097eb; }