From 3f591b07e0ba37af72cceabf3d7a24675e2858c4 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Wed, 17 Feb 2021 15:40:50 +0100 Subject: [PATCH] Replace TextFlow with RichTextFX CodeArea --- README.md | 2 ++ pom.xml | 9 ++++++++- src/main/resources/fxml/Main.fxml | 17 ++++++++--------- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 833439c..f1aace4 100644 --- a/README.md +++ b/README.md @@ -18,3 +18,5 @@ ## Credits/Sources - [james-d/SimpleMVP](https://github.com/james-d/SimpleMVP/tree/master/src/examples/mvp) -> Demonstration of JavaFX Model/View/Controller application +- [FXMisc/RichtTextFX](https://github.com/FXMisc/RichTextFX) -> Library for handling rich text and line numbers +- [richtextfx-demos](https://github.com/FXMisc/RichTextFX/blob/master/richtextfx-demos/README.md) -> Examples and demos of how to use RichTextFX, including [Java Keywords Demo](https://github.com/FXMisc/RichTextFX/blob/master/richtextfx-demos/src/main/java/org/fxmisc/richtext/demo/JavaKeywordsAsyncDemo.java) \ No newline at end of file diff --git a/pom.xml b/pom.xml index f4f3602..89d0e72 100644 --- a/pom.xml +++ b/pom.xml @@ -28,6 +28,13 @@ 16-ea+7 + + + org.fxmisc.richtext + richtextfx + 0.10.5 + + org.junit.jupiter @@ -35,7 +42,7 @@ 5.8.0-M1 - + org.testfx testfx-core diff --git a/src/main/resources/fxml/Main.fxml b/src/main/resources/fxml/Main.fxml index cf31755..7ef2edb 100644 --- a/src/main/resources/fxml/Main.fxml +++ b/src/main/resources/fxml/Main.fxml @@ -13,6 +13,8 @@ + + - - - - - + + + + + - +