For example Notepad++ (freeware software) has a feature "Show all characters"
If I press the icon "Show all characters", I can see the invisible characters like "carriage return", "line feed" and "tab".
Tab will be shown as ->
Space will be -> ·
Carriage return will be shown as CR (Mac)
Line feed will be shown as LF (Linux)
Carriage return and Line feed will be shown CRLF (DOS)
How can I make invisible characters visible via RSyntaxTextArea?
Similar code can be found for JEditorPane/JTextPane http://java-sl.com/showpar.html
(I think there is no differ between the 3 type of linebreaks.)