QOwnNotes icon indicating copy to clipboard operation
QOwnNotes copied to clipboard

[FEATURE] editor: show whitespace

Open dnalor opened this issue 1 year ago • 4 comments

Describe the solution you'd like

it would be great if the editor could (optionally) show whitespace symbols (space, tabs, newline, ...) example (from featherpad):

Image

Output from the debug section in the settings dialog

see #3252

dnalor avatar Apr 11 '25 11:04 dnalor

Thank you for your feature request. Pull requests to look at welcome. 😉

pbek avatar Apr 11 '25 12:04 pbek

Pull requests to look at welcome.

Would actually love to help, but unfortunately have zero skills in all technologies involved (C++, Qt, etc.). Sorry.

dnalor avatar Apr 11 '25 12:04 dnalor

Hi @dnalor

It is already possible with the characters-highlight script https://github.com/qownnotes/scripts/tree/master/characters-highlight (it lets you highlight any character you want, and choose the style for highlighting).

Beurt avatar Apr 14 '25 21:04 Beurt

@Beurt thanks for the suggestion unfortunately, this won't work:

  1. highlighting <space> and <tab> will make the text unreadable
  2. highlighting not possible for <cr>
  3. no differentiation between space/tab (though this could be done by modifying the script)

dnalor avatar Apr 15 '25 07:04 dnalor