-
Notifications
You must be signed in to change notification settings - Fork 237
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
Question: How to show vertical lines in CodeArea for indentations? #1214
Comments
Can anyone help me? Or this is very difficult or RichTextFX doesn't support such things? |
Sorry, can't help with this one - it seems quite difficult. |
@Jugen That's very sad. But thank you for your answer. |
@Jugen Maybe then it is necessary to make this issue as a feature request? How do you think? |
@Jugen Any ideas? Or there is no chance that it will be implemented? |
Sorry to say @PavelTurk but I don't think it will be implemented as there are hardly any PR by the community lately. |
@Jugen Could you say if it is possible to make vertical lines that will be ignored by selection, cursor etc. By other words these lines must be only visible, but not be the part of the text. I need to do something like table columns but in RichTextFX. I wouldn’t like to use StackPane with RichTextFX and SomeLinePane because it would complicate things |
I think the only way to do that would be make the vertical lines part of the styling. Can |
@Jugen Thank you for your reply. I will try to make it with border. But the problem is that these lines must be visible even if there is no text at all. Maybe it is necessary to add to RichTexfFX something like grid? Because we have lines (horizontal lines) and characters (vertical line). Of course with possibility to control every side of every cell. However, grid won't be linked to text - it will be displayed even if there is no text at all. What do you think? |
@Jugen Any ideas? Or you think it is a bad idea? |
I think doing tables will be hard. In a way each cell is it's own little editor who's dimensions are linked to its neighbors. So maybe the way to go is to embed a GridPane with each cell being a RichTextFX editor ? Not sure if this will scale well for very large tables but for small ones it could maybe work ? |
@Jugen I suggested grid because anyway it is necessary to add a general solution for vertical (and maybe horizontal) lines. For example, even if we consider a simple editor we can need vertical lines for indentation or one line to show the end of the line (for example at position 80). So, I think RichTextFX must support such things. For example, we can start with assumption that monospace font is used and font size is the same for all text. The reason of this assumption is that otherwise it is impossible to make any vertical (horizontal) grid. So, with such assumption we will add one more layer above text. I mean all existing text layer remains at it is. We are only adding a new layer with lines exactly along the edges of the cells. For example, right margin in NetBeans: Yes, suggested solution has its limitation, but it is easy to implement and gives many opportunities. What do you think? |
Many editors shows grey vertical lines for indentations. For example like this:
Could anyone say how to do it fox
XML
withCodeArea
?The text was updated successfully, but these errors were encountered: