-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Styling the caret (not just colour) #397
Comments
Try setting |
Yup, there is no checks for caret width: Allowing custom caret width would be a nice start. Custom caret shapes and positioning (e.g. |
Hmmm I have had a quick look at the code, what are some good pointers to get started with adding some basic functionality around the caret? |
@gbmhunter Are you still interested in taking a look at this? |
@JordanMartinez Sorry no not anymore. After diving into the source code for a bit I realised it would be a decent amount of work to get up to speed with the architecture and implement the changes, and opted to go for a JavaFX WebView/HTML textarea approach instead. |
Could anyone say if it is possible to set styles for caret using StyleClassedTextArea in 2022. Same problem - I need something |
just a suggestion - you could use Text/TextFlow.rangeShape() to draw the "caret", or at least to determine the geometry. |
When using a
TextFlow
node, I was able to simulate a blinking "terminal" (insert, block-shaped) style caret by adding aText
object as follows:This produced the blinking caret as seen in the demo image on the page: http://mbedded-ninja.github.io/NinjaTerm/
Is there any way to get the same functionality with RichTextFX?
The text was updated successfully, but these errors were encountered: