W
W
Web Lizard2016-04-07 13:00:11
Sublime Text
Web Lizard, 2016-04-07 13:00:11

How to put a dollar sign in an Emmet snippet?

There is this snippet

"snippets": {
  "pre": "echo '<pre>';\nprint_r($expression);\necho '</pre>';"
}

But in reality, the snippet works like this:
echo '<pre>';
print_r(1expression);
echo '</pre>';

That is, he puts a unit instead of a dollar.
Is it possible to do something so that there is still a dollar?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Taratin, 2016-04-07
@Lizard-108

\\$
docs.emmet.io/customization/snippets/#escaping--an...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question