add more code styles
This commit is contained in:
@@ -17,6 +17,9 @@ class CodeLabel(val pos: Vec, val cursorPos: ObjectProperty<Vec>, val interp: In
|
||||
if (char in "0123456789") styleClass.add("code-num")
|
||||
if (char in "gp") styleClass.add("code-funge")
|
||||
if (char in "<>^v?#") styleClass.add("code-dir")
|
||||
if (char in "@") styleClass.add("code-stop")
|
||||
if (char in "_|") styleClass.add("code-condition")
|
||||
if (char in "\"") styleClass.add("code-quote")
|
||||
|
||||
if (pos == cursorPos.value) styleClass.add("code-cursor")
|
||||
if (pos == interp.ip.pos) styleClass.add("code-cursor-ip")
|
||||
|
||||
@@ -26,7 +26,7 @@ class EditorView : View("Befide") {
|
||||
codeView.src = """ 2>:3g" "-!v\ g30 <
|
||||
|!`"O":+1_:.:03p>03g+:"O"`|
|
||||
@ ^ p3\" ":<
|
||||
2 234567890123456789012345678901234567890123456789012345678901234567890123456789"""
|
||||
2 234567890123456789012345678901234567890123456789012345678901234567890123456789"""
|
||||
|
||||
// codeView.src = """"hello world",,,,,,,,,,,@"""
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
* {
|
||||
-fx-font-size: 14;
|
||||
-fx-font-size: 18;
|
||||
-fx-font-fill: black;
|
||||
}
|
||||
|
||||
@@ -21,17 +21,27 @@
|
||||
}
|
||||
|
||||
.code-funge {
|
||||
-fx-text-fill: #258135;
|
||||
-fx-text-fill: #418148;
|
||||
-fx-font-style: italic;
|
||||
-fx-font-weight: bold;
|
||||
}
|
||||
|
||||
.code-dir {
|
||||
-fx-text-fill: #b82893;
|
||||
-fx-font-weight: bold;
|
||||
}
|
||||
|
||||
.code-str {
|
||||
-fx-text-fill: #0a5158;
|
||||
.code-condition {
|
||||
-fx-text-fill: #ffa235;
|
||||
}
|
||||
|
||||
.code-stop{
|
||||
-fx-font-weight: bold;
|
||||
-fx-text-fill: #990208;
|
||||
}
|
||||
|
||||
.code-quote {
|
||||
-fx-text-fill: #258135;
|
||||
}
|
||||
|
||||
.code-cursor-ip {
|
||||
|
||||
Reference in New Issue
Block a user