Bug 312192

Summary: Highlight invisible characters
Product: [Applications] kate Reporter: Rob W <gwnRob>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: gwnRob, michal.humpula
Priority: LO    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.0

Description Rob W 2012-12-25 17:24:59 UTC
When I copy-paste code from JSFiddle, an invisible character is included at the end (U+200B). It would be nice if these invisible charactacters are somehow highlighted in Kate, eg using a box.


Reproducible: Always

Steps to Reproduce:
1. Visit http://jsfiddle.net/
2. Type code, eg `console.log(0);`.
3. Select all code
4. Paste in Kate
5. Save code, eg. as test.js
6. Run code, eg. using `node test.js`
Actual Results:  
The code seemed to be OK in Kate, but execution failed.

Expected Results:  
I expect to see the invisible characters to be highlighted, so that I can select and remove it.
Comment 1 Dominik Haumann 2012-12-28 10:54:52 UTC
Can you follow http://kate-editor.org/get-it/, edit kate/part/render/*.cpp and send a patch?
Comment 2 Michal Humpula 2013-12-31 12:20:37 UTC
Git commit 65d0c80eea6db8df936bd522d0b3d361a524559c by Michal Humpula.
Committed on 31/12/2013 at 12:19.
Pushed by michalhumpula into branch 'frameworks'.

add menu action to display non-printable spaces
Related: bug 85321, bug 237821

M  +1    -0    part/data/katepartui.rc
M  +50   -0    part/render/katerenderer.cpp
M  +16   -0    part/render/katerenderer.h
M  +11   -0    part/view/kateview.cpp
M  +2    -0    part/view/kateview.h

http://commits.kde.org/kate/65d0c80eea6db8df936bd522d0b3d361a524559c