Sublime Forum

My first snippet to insert a "\$" is a "no no"

#1

Well, it looks like my first attempted snippet just happens to be a “no no”. Is there any way to insert a slash+dollar-sign without any spaces – i.e., a snippet to insert “$” ?

Because snippets need a slash preceding the dollar sign to insert a dollar sign, inserting slash+dollar-sign appears to be problematic.

[code]# The goal is for the snippet to insert this into the text of the file being edited:

$

[/code]

0 Likes

#2

What about “\$”?

0 Likes

#3

Third slash is the charm ! :smile:

I had only tried two slashes.

Thank you very much.

0 Likes