Community
Participate
Working Groups
I like to use the Form Feed control character (^L) in my C++/Java source code to cause my printed source pages to break at lines that do not disrupt block indentation. All Eclipse compilers understand (i.e., ignore) this character and the Eclipse Java Editor displays the character as an unprintable character (square) and allows it to be copied from one line to another. There seems, however, to be no way for me to enter this charater into my source file from the keyboard. (Perhaps this capability exists but I have looked quite extensively.) I am very impressed with Eclipse - very good work.
Moving to JDT.
Moving to SWT for comment: is this possible with StyledText or do we have to build a layer on top of it?
By default, StyledText should not allow the user to embed control characters such as ^L into the text that the user types. It should be pretty easy to detect that the user typed it (using event.keyCode and event.character) insert the character into the text of the control. I have no idea how the operating system will draw the character and/or if it will conflict with the StyledText line delimiter. This all needs to be tried in a snippet. Please don't build a layer dedicated to ^L. There are enough layers already in the system.
Your bug has been moved to triage, visit http://www.eclipse.org/swt/triage.php for more info.