sublime-text-plugin: Invalid snippets

Hi @sergeche ! Please help me to deal with my CSS/HTML snippets.

Before Emmet update:

  • “bd1” => “border:1px solid #|;”;
  • “c1” => “color:#111;”;
  • “cf” => “color:#fff;”;
  • “lh20” => “line-height:20px;”;
  • “after” => “display:block;\ncontent:"";\nclear:both;”

After Emmet update:

  • “bd1” => “border: 1px;”;
  • “c1” => “color: 1px;”;
  • “cf” => NOTHING;
  • “lh20” => “line-height: 20;”;
  • “after” => NOTHING

… and a lot of such examples I’ve got. Also I can’t find how to manage css.valueSeparator option. Previously it was “css.valueSeparator”: “:” (without spaces after "😊, but now it doesn’t work as well. Another question is how to create HTML snippet with caret position after abbreviation expanding? Sequence of caret position or highlight some code after expanding? For example: "js": "<script src=\"js/${1:main.js}\">${2}</script>${3}"

My old snippets and preferences: emmet-st3.zip

Thank you in advance 😃

_Originally posted by @gladisihor in https://github.com/emmetio/sublime-text-plugin/issues/50#issuecomment-684024126_

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

Да, можно: я чуть позже доработаю Emmet, чтобы он в том числе резолвил сниппеты типа fz11, то есть чтобы принудительно не отделял значения. Выше указал, как добавлять Emmet-сниппеты в ST, там же есть ссылка на параметр для разделителя (сейчас это "stylesheet.between").

А по поводу финального таб-стопа — да, про это забыл, уже есть такой баг: #97