Add end point of each line

0

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

I have a html code that I need to add to the String, like this:

body +="";

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

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

But there are many lines, and doing this manually will give work = (

    
asked by anonymous 11.04.2016 / 16:39

1 answer

0

One way to do this is to replace the line endings of the file with: "; [end-of-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 override function. Simply mark the "Extended" option in the "Search Mode" field and indicate the line endings with the corresponding characters '\ n' or '\ r' '\ n'.

    
11.04.2016 / 18:44