Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

View special chars in Sublime Text

I am using both Notepad2 and Sublime Text 3 and I prefer ST3 over Notepad2 as it has a lot of great features. One thing I miss very much though is the possibility to view special characters in a logfile.

If I have a logfile with this one line in it (<null> is the HEX char 0x00):

ERROR: Received invalid data string [<null><null>e<null><null>test</null>]

If I open it in Notepad2 I get this view:

enter image description here

If I open it in ST3 I get this HEX view:

enter image description here

Is it possible to get the same view in ST3 as in Notepad2, so I can see the special characters?

like image 580
Beauvais Avatar asked Mar 03 '26 12:03

Beauvais


1 Answers

I just found this option which can be set in the User Settings:

// Files containing null bytes are opened as hexadecimal by default
"enable_hexadecimal_encoding": false

This gives exactly what I wanted:

enter image description here

like image 191
Beauvais Avatar answered Mar 06 '26 04:03

Beauvais