Open NightMachinery opened 3 months ago
I know a hack that works. Run elisp code that returns an empty string
# key: dm
# name: delete-me-1
# --
This
is`(progn "ignore me" "")`
a
test.
You can create your own function to make it look neater
# key: dm2
# name: delete-me-2
# --
This
is a `(yas-comment "really")`good
second example.
create elisp function (best to change function name to avoid naming conflict)
(defun yas-comment (msg)
"Ignore MSG. Return an empty string"
"")
You will need to escape and unescape your quotes. You can do that by selecting the region and running a function. http://xahlee.info/emacs/emacs/elisp_escape_quotes.html
I have this snippet:
I want to comment some of the
model=...
lines such that they remain in the snippet file, but are never expanded. (I.e., if we treat the above snippet template as code, I want to add some comments to it.)