Skip to content

How to insert new lines in delimiter pair depending on the input? #248

Answered by kylechui
gaoqiangks asked this question in Q&A
Discussion options

You must be logged in to vote

The main thing to note is that multi-line strings are denoted using tables of strings. Thus { "$", "" }, { "", "$" } is a pair of dollar signs on new lines above/below the cursor. You should be able to use an if statement to determine what value you wish to return. More info can be found in the surrounds.add section of the help menu.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gaoqiangks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants