Sublime Forum

How to do multiple lines into one line?

#1

When I open one of .css file everything turn up in one line.

I should be see like 700+ lines. I have not got any problem with any other files when I opened only with this specific file.

I tried to anything what I could, but I could not figure out.

Somebody know what I should do? Sorry if is too easy for you, but I just started to use Sublime text.

The .css file is from http://startbootstrap.com/template-overviews/agency/ website > download > on the .zip file CSS folder > agency.css <<< this is the file what is turn up on my pc in one line.

Cheers

0 Likes

#2

The file is just one line. That’s called “minifying” and is done to reduce the amount of data that has to be downloaded by users and served by the server.

You can “unminify” CSS files easily by using a plugin, such as https://packagecontrol.io/packages/HTML-CSS-JS%20Prettify, or online: https://www.browserling.com/tools/css-prettify.

1 Like

#3

Thank you very much your help.

I used the link what you gave it me. (https://packagecontrol.io/packages/HTML-CSS-JS%20Prettify). I followed the installation instruction from that website. No luck… Maybe I need to do something after the success installation?

I found one website call: http://unminify.com/ , and I could “unminify” my .css.

Thank you so much your help and your quick respond!!! :smiley:

0 Likes

#4

I think you installed the plugin but didn’t actually use it! You should go to the css file in sublime, open the command palette (cmd+shift+p) and run the htmlprettify command. That should format your css. It also works for html and js files.

1 Like

#5

Yes, you right!

It’s working now! :smiley:

Before I didn’t run the command…

Thank you very much your help! :+1: Have a good one!

0 Likes