Kate and KWrite both don't show all
\n characters. Problems appear to be next to where there are empty lines.
The problem isn't just in the highlighting itself. Wrong number of matches are found. Search and replace doesn't replace all
\r doesn't find anything. If I place the cursor at the beginning of, say, line 7 and press
delete and then
enter, the search works.
Is it possible that other characters, besides
\r are used for newlines? The file was created as UTF-8 and only opened with Kate as UTF-8.
I understand that posting a picture of text is discouraged, but I can't show the highlighting without the screenshot.
This is of utmost importance to me, because I use Kate's search and replace feature to quickly format big documents, e.g. for StackExchange.
I run up-to-date Fedora 24 with KDE.