Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime text Hexadecimal View

How can I get back to text version from hexadecimal in sublime text?

I accidentally changed the encoding of my .css file to Hexadecimal in sublime text.

How can I get back the normal text .css?

enter image description here

like image 391
Aamir Avatar asked Jan 14 '15 12:01

Aamir


People also ask

Is Sublime Text a hex editor?

HexViewer is a plugin for Sublime Text that allows the toggling of a file into a hex viewing mode.

How do I read a binary file in sublime?

Open a session in Terminal, and use head -1 <path_to_your_file> to open the file. It'll read what it thinks is the first line and display it in the window. Or, instead, use file <path_to_your_file> to analyze the file and it'll tell you whether it thinks it's ASCII text, binary, or some other type.

What is hex file extension?

An ASCII text file (with the extension . hex). You can use a Hexadecimal (Intel-Format) File (. hex) in the Quartus® Prime software to store the initial memory values for a memory block, such as RAM or ROM, that is implemented in an FPGA device, or to build software project executables.


2 Answers

Files containing null bytes are opened as hexadecimal by default In your User or Default Settings file:

"enable_hexadecimal_encoding": false 

OR

In your User or Default Settings file(s):

"preview_on_click": false 
like image 40
I'm Geeker Avatar answered Oct 13 '22 19:10

I'm Geeker


Go to File -> Reopen with Encoding and select UTF-8. This will bring back the normal text view.

like image 138
MattDMo Avatar answered Oct 13 '22 19:10

MattDMo