Hi there, @eht16 I’m using geany for competitive programming how can I use multi line snippets/templates in geany I’m unable to write everything in a single line any help will be appreciated.
Thank you,
Saif Ali Khan
Hi there, @eht16 I’m using geany for competitive programming how can I use multi line snippets/templates in geany I’m unable to write everything in a single line any help will be appreciated.
Thank you,
Saif Ali Khan
Hi @saifcore7, I hope I understood your question correctly.
You can use the escape sequence "\n" to insert a new line in a snippet.
See also the documentation for snippets: https://geany.org/manual/#user-definable-snippets.
@saifcore7 in "snippets.conf" simply remove the line break at line 56, it should read:
template=#include <iostream>\nusing namespace std;{%cursor%}\n