emmetio / Emmet.tmplugin

Emmet plugin for TextMate
http://emmet.io
97 stars 11 forks source link

"Indent tags" option breaks line break preference #1

Open jennie opened 11 years ago

jennie commented 11 years ago

If "Indent tags" is selected in preferences, abbreviations do not expand onto new lines even if "Each tag on new line" option is set to "Yes."

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/3981870-indent-tags-option-breaks-line-break-preference?utm_campaign=plugin&utm_content=tracker%2F363604&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F363604&utm_medium=issues&utm_source=github).
sergeche commented 11 years ago

Looks like your current document is Plaint Text. Try to switch to HTML.

jennie commented 11 years ago

Sergey, Ah, yes - my document is set to a custom markup language (not text). Any way to get Emmet to treat output in a document set to a custom language as HTML for the purposes of line breaks/indentation?

sergeche commented 11 years ago

The idea to use a special profile for unknown syntaxes is to allow you to use Emmet abbreviations inside programming languages. For example, you may want to generate HTML structures in JS strings.

I’ll try to make syntax detection more intelligent.

jennie commented 11 years ago

Much appreciated! Happy to test.