l'L'l
l'L'l

Reputation: 47274

Show NUL character in Sublime Text 3

I'm attempting to copy/paste ASCII characters from a Hex editor into a Sublime Text 3 Plain Text document, although NUL characters do not show/display and the string is truncated:

Hexadecimal:

48 65 6C 6C 6F 2C 20 57 6F 72 6C 64 21 00 66 6F
6F 62 61 72 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 

ASCII:

Hello, World!foobar�������������������������

Sublime Text: Truncates copied string and does not show NUL characters Sublime Text 3 TextMate: Shows NUL via "Show Invisibles" TextMate I've tried the suggestion mentioned here by adding "draw_white_space": "all" to my preferences — still no luck! Is this possible with Sublime Text 3?

Upvotes: 0

Views: 1702

Answers (1)

Richard Inglis
Richard Inglis

Reputation: 5958

You're not alone in having this problem - others have posted bug reports about this behaviour: https://github.com/SublimeTextIssues/Core/issues/393

However it's not consistent:

Behaviour seems dependent on the file and where the NUL chars exist;

Similar issue here, with the console: https://github.com/SublimeTextIssues/Core/issues/1939

Upvotes: 3

Related Questions