>From here 
<http://stackoverflow.com/questions/26505729/how-to-display-non-printable-symbols-in-qtextedit-pyqt4>
 I 
found a little snippet of code which makes tabs and spaces visible:

doc = QtGui.QTextDocument()
option = QtGui.QTextOption()
option.setFlags(QtGui.QTextOption.ShowTabsAndSpaces)
doc.setDefaultTextOption(option)
textEdit = QtGui.QTextEdit()
textEdit.setDocument(doc)

>From a different post 
<http://stackoverflow.com/questions/32147592/color-whitespace-and-paragraph-separators-in-qtextedit-with-qsyntaxhighlighter>
 (although 
it is a C++ example) it shows that a custom highlighter can be used to 
colorize these visible tabs and spaces.

I have for a while wanted to make this change because the way Leo currently 
handles "invisibles" is too conspicuous to keep on all the time. 

I'm looking for some direction on how this might be integrated into Leo? 
Any help would be greatly appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to