RichTextFX icon indicating copy to clipboard operation
RichTextFX copied to clipboard

Add support for Symbolic Whitespace

Open RobertBColton opened this issue 10 years ago • 5 comments

I am not posting this as an RFE but rather as an inquiry to see if such support is already possible with RTFX to implement easily. In a lot of code editors such as Visual Studio, Eclipse, or Notepad++ there exists the ability and option to visualize white space with symbols. Tabs are typically represented as right pointing arrows and spaces as vertical centered dots.

Symbolic Whitespace in Eclipse

RobertBColton avatar Sep 01 '15 11:09 RobertBColton

Hi, it is not possible to implement easily, but @JFormDesigner implemented it recently in Markdown Writer FX via reflection and misuse of paragraph graphic.

screen shot 2015-09-01 at 1 40 10 pm

TomasMikula avatar Sep 01 '15 17:09 TomasMikula

@TomasMikula Hi Tomas, thank you for your feedback. The way you describe it makes me ambivalent about taking his approach though. I also see #87 which is somewhat related to this and seems as though you yourself would like a better solution for things like this. Would you like to keep this open as an enhancement or close it and let me link this from #87 as a consideration?

RobertBColton avatar Sep 03 '15 07:09 RobertBColton

You are right, I don't want to encourage people to depend on internals and I would like a better solution. I don't think #87 would be a good way to implement this either, because #87 is about having Nodes as legitimate parts of the document, while here the document would still contain only text and the symbolic whitespace is about styling.

TomasMikula avatar Sep 07 '15 17:09 TomasMikula

This is an essential feature for every code editor. If not implemented in the core, we should at least provide a sample implementation to show how to do it.

afester avatar Jan 19 '17 13:01 afester

I think it should be implemented in the core.

JordanMartinez avatar Jan 19 '17 20:01 JordanMartinez