Add end point of each row

Asked

Viewed 5,229 times

0

I wanted to know if you have any command in the sublime or some other editor, which will insert some predetermined character.

'Cause I have an html code that I need to add to String, like this:

body += " ";

Ai I wanted to add at the beginning of each line the following code: body += "

And at the end of each row, add: ";

But there are many lines, and doing it manually will take work =(

1 answer

0


One way to do this is to replace the end of the file line with:
";[end-of-the-line]body += "
and then adjust the first and last lines.

Where [end-of-line] is the corresponding special character(s) of the file format you are using.

Can be done in Notepad++ using the usual replace function. Just check "Extended" in the "Search Mode" box and enter the end of the line with the corresponding characters ' n' or ' r' ' n'.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.