Adding '#' characters to multiline text? #1757
-
Hi all, Since the # character is a comment in YAML, how would I include a # character in multiline snippets? For example, if I had a C language snippet like: How would I get espanso to process this correctly? |
Beta Was this translation helpful? Give feedback.
Answered by
smeech
Nov 28, 2023
Replies: 1 comment 1 reply
-
I think this works: - trigger: :std
replace: |
#include <stdio.h>
#include <stdlib.h> or - trigger: :std
replace: "#include <stdio.h>\n#include <stdlib.h>" unless I have misunderstood your question? See https://yaml-multiline.info/. You may also be interested in the new Discord channel. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
smeech
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think this works:
or
unless I have misunderstood your question?
See https://yaml-multiline.info/.
You may also be interested in the new Discord channel.