HTMLBeautify icon indicating copy to clipboard operation
HTMLBeautify copied to clipboard

Doesn't change anything in the open file

Open dserodio opened this issue 6 years ago • 4 comments

I installed HTMLBeautify, opened an HTML file, and ran HTMLBeautify from the Command Pallete. Nothing happened, except for a "Beautifying Entire File" in the status bar.

I tried with a clean Sublime Text profile, and got the same results. I recorded a short video demonstrating the problem.

dserodio avatar Mar 05 '18 20:03 dserodio

Same issue here. I have pasted minified HTML/CSS, the file uses the HTML syntax and is saved as an HTML file with .html extension

But nothing happens when I run manually or using a shortcut - isn't it supposed to format the code?

sciascia avatar Mar 14 '18 20:03 sciascia

@dserodio HTMLBeautify is basically a quick script to help re-indent code. It won’t add line breaks, instead it looks at each line of code and tries to determine the indent level for each line. If you're looking for something to parse through HTML elements and add line breaks, etc., you may want to try an HTMLTidy tool instead. https://packagecontrol.io/packages/SublimeLinter-html-tidy

I hope that helps!

rareyman avatar Mar 19 '18 17:03 rareyman

@sciascia My guess is you are using Windows. Be sure to restart ST after installation to make sure it works properly.

rareyman avatar Mar 19 '18 17:03 rareyman

Thanks for that, I'm actually on Mac but will test again today. Cheers

sciascia avatar Mar 19 '18 18:03 sciascia