diff --git a/ide/src/main/kotlin/befide/ide/CodeLabel.kt b/ide/src/main/kotlin/befide/ide/CodeLabel.kt index 5396586..d3d423b 100644 --- a/ide/src/main/kotlin/befide/ide/CodeLabel.kt +++ b/ide/src/main/kotlin/befide/ide/CodeLabel.kt @@ -17,6 +17,9 @@ class CodeLabel(val pos: Vec, val cursorPos: ObjectProperty, 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") diff --git a/ide/src/main/kotlin/befide/ide/EditorView.kt b/ide/src/main/kotlin/befide/ide/EditorView.kt index bc16ea1..e055dff 100644 --- a/ide/src/main/kotlin/befide/ide/EditorView.kt +++ b/ide/src/main/kotlin/befide/ide/EditorView.kt @@ -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",,,,,,,,,,,@""" } diff --git a/ide/src/main/resources/befide/ide/style.css b/ide/src/main/resources/befide/ide/style.css index 17243ac..016bf81 100644 --- a/ide/src/main/resources/befide/ide/style.css +++ b/ide/src/main/resources/befide/ide/style.css @@ -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 {