Questions tagged [richtextfx]

Rich text editing component for JavaFX.

RichTextFX provides a text area for JavaFX with API to style ranges of text. It is intended as a base for rich-text editors and code editors with syntax highlighting.

58 questions
9
votes
1 answer

How to use RichTextFX

How can I use RichTextFX to highlight a portion of a textarea? Do I need to add the JAR file to my project library? Please walk me through the whole procedure .
DeshErBojhaa
  • 476
  • 2
  • 10
  • 24
7
votes
3 answers

Show breakpoint at line number in RichTextFx CodeArea

I'm working with RichTextFx's CodeArea to highlight custom mini language code. Now while executing this code I want to show a small arrow in front of current executed line. I know the specific line number but can't get anything to happen with the…
Oli
  • 240
  • 1
  • 10
6
votes
1 answer

JavaFX Spell checker using RichTextFX how to create right click suggestions

I have a spell checker demo here, visually it is exactly what I want (red underline for words that are not correct), but I'm having trouble creating a right-click context menu to apply suggestions. I was able to get a context menu on the Text…
trilogy
  • 1,738
  • 15
  • 31
4
votes
3 answers

How to make look and feel of RichTextFx similar to TextArea?

RichTextFx (top control) doesn't looks like TextArea (bottom control) by default: I have found a way how to add round corners (just copy and configure some styles from modena.css): .virtualized-scroll-pane { -fx-padding: 0; -fx-cursor:…
Maxim
  • 9,701
  • 5
  • 60
  • 108
3
votes
1 answer

Get character index on right click for CodeArea

I am using CodeArea from RichTextFX in my code editor. I need to show context menu on right click and fill it based on the text where mouse is pointing. Like if I right click a function call, there will be "Go to declaration" in the context menu. To…
Maxim.F
  • 33
  • 3
3
votes
2 answers

Text Alignment justify but to the right

We want to make the text-alignment stretch the lines and make the width equal but from the right side in a InlineCssTextArea (from RichTextFX). I have used: -fx-text-alignment:justify; The result Required Also what I need to make it work?
3
votes
1 answer

Text background color in RichTextFx CodeArea

I'm using RichTextFx (CodeArea) to highlight my code. I want to change text background color for some keywords and use css below: .parameter { -rtfx-background-color: yellow; } But it's changes background color for all text between my keywords…
DaddyRatel
  • 729
  • 3
  • 13
  • 30
3
votes
2 answers

Get actual line number where curser is JavaFX with RichTextFX

Is there a function in RichTextFX to get the actual line number where the curser? Github: RichTextFX
Luke
  • 59
  • 7
2
votes
1 answer

How to indicate fold unfold icon at the line indicator in codearea of richtextfx control java

I just want to implement some code folding between brackets or carets like other java IDEs: eclipse, netbeans, intellij using codearea control of richtextfx library. Please give me some code hints? thank you.
garawaa garawaa
  • 154
  • 1
  • 6
2
votes
2 answers

Autocompletion in codearea in javafx

How could I create a listview at the current caret position in codearea while typing as autocompletion in javafx? So far I locate the word that is currently being typed and I see if that word is contained in the array. This is the code I have so…
2
votes
2 answers

Maintain indentation in RichTextFX CodeArea

I am building a YAML editor in a RichTextFX CodeArea (which I believe is a type of TextArea). I'd like to maintain the current level of indentation when I hit Enter. So for example: - item1: foo item1A: subElement: A
Steve
  • 4,457
  • 12
  • 48
  • 89
2
votes
1 answer

RichTextFx change selected text color and line number background

I want to change selected text's color or to change highlighting color, and background in line numbers in RichTextFx, but I don't know how to do it, I need your help !
2
votes
2 answers

How to set the vertical scroll in RichTextFx

I want to be able to set the vertical scroll to the top or the bottom of a InlineStyleTextArea in RichTextFX. By the looks of this thread, moveTo(..) should do the trick. But it doesn't work for me. I've also tried selectRange(..) and…
Jonatan Stenbacka
  • 1,824
  • 2
  • 23
  • 48
1
vote
1 answer

RichTextFx VirtualizedScrollPane flickers when text wraps as you type

I have a flickering issue with RichTextFx StyleClassedTextArea and VirtualizedScrollPane. When you wrap text and keep typing, it flickers so much that you are unable to read while you type. This is a stark contrast to the regular TextArea…
trilogy
  • 1,738
  • 15
  • 31
1
vote
0 answers

JLanguageTool is running slow

I am trying to implement JLanguageTool in combination with JavaFX and RichtextFX to get myself a GUI which spellchecks the given input in a Codearea and highlights misspelled words. My problem is, that even for small sentences (6 words) with a…
1
2 3 4