Menu

Start/End

2008-02-27
2012-11-13
  • Nobody/Anonymous

    How to add some text on the begin/end line (this same text for each line)?
    Example (before operation):

    <table border="1">
    <tr align="center">
    <td rowspan="2">My index </td>

    After:

    writeln(f,'<table border="1">');
    writeln(f,'<tr align="center">');
    writeln(f,'<td rowspan="2">My index </td>');

     
    • Nobody/Anonymous

      find: ^(.*)$
      replace: writeln\(f,'\1'\);

      enable regex. Or create a macro with home and end, typing your characters en pressing the down arrow, then run to the end of the file.

       
      • Nobody/Anonymous

        I'd suggest typing Ctrl+CursorRight at the End of the line, instead of a CursorDown...