r/JavaFX • u/DenpoXbox • Jul 22 '24
Help Jfx code editor
I'm working on a code editor in jfx and need help implementing the code editor syntax highlighting function.
https://GitHub.com/abummoja/Html-Edit Video preview: https://youtu.be/jxNE5apXRV8 Edit: I've tried richtextFX and WebView with embedded ace editor but it doesn't work.
6
Upvotes
3
u/darkwyrm42 Jul 22 '24
Look into RichTextFX. It's a rich text editor that is very much oriented to code editing. Fair warning, though, some assembly required.
1
u/DenpoXbox Jul 22 '24
https://youtu.be/jxNE5apXRV8
1
u/sedj601 Jul 24 '24
Have a look at https://stackoverflow.com/questions/54079253/show-html-in-webview-using-prism-js. You should be able to alter it to use https://codemirror.net/.
3
u/[deleted] Jul 23 '24
[removed] — view removed comment