akalongman / sublimetext-codeformatter

Code Formatter plugin for ST2/ST3
MIT License
772 stars 130 forks source link

CodeFormatter doesn't format HTML file #264

Closed gusbemacbe closed 6 years ago

gusbemacbe commented 8 years ago

Gamarjoba, Avtandil!

I installed a CodeFormatter package from Package control via Sublime Text 3. I selected Format Code and the HTML file wasn't beautified.

Check my HTML file that wasn't beautified by CodeFormatter: https://github.com/gusbemacbe/bootstraphyphen/blob/master/teste2.html

How to fix it?

Me var madlobeli sheni pasukhitvis!

Gustavo

RevanProdigalKnight commented 8 years ago

If you haven't changed your settings, it's probably using the BeatifulSoup formatter. Try adding "formatter_version": "regexp" to your user settings file.

gusbemacbe commented 8 years ago

What is the user setting file? CodeFormatter user settings file or Sublime Text user settings file?

Scarboroid commented 6 years ago

@gusbemacbe CodeFormatter user settings. I hope you found the answer two years ago. Can you close this issue?

gusbemacbe commented 6 years ago

Although the formatting worked, the style is not solved yet. For example, in a HTML file, when you format code, the tags b, i and other are indented into new lines. And non-tags also are indented into new lines.