Changing characters / glyphs in Eclipse

Is there a way to change the characters Eclipse uses to represent whitespace characters? For example, I would like to set the newline glyph "ΒΆ" to something more similar to the "Notepad ++" LF " style .

I know how to turn them on and off, change the font, opacity, etc. But I didn't find any settings to actually change the symbols.

+3


source to share


1 answer


Not. This setting is not provided. These parameters are hardcoded in the class org.eclipse.jface.text.WhitespaceCharacterPainter

.

You need to customize your source code to change spaces, tabs, etc.




  private static final char SPACE_SIGN= '\u00b7';
  private static final char IDEOGRAPHIC_SPACE_SIGN= '\u00b0';
  private static final char TAB_SIGN= '\u00bb';
  private static final char CARRIAGE_RETURN_SIGN= '\u00a4';
  private static final char LINE_FEED_SIGN= '\u00b6';

      




Also you can raise the bugzilla extension request for eclipse here to implement it.

+2


source







All Articles