#9797
Stefan
Participant

Some examples for section:

////Delete start of line (Remove first sign/char):
redraw = false;
document.selection.SetActivePoint( eePosLogical, 1, Line );
str = document.GetLine( Line );
if (str != “”)
{
document.selection.StartOfLine();
document.selection.Delete();
}

////Delete end of line (Remove last sign/char):
redraw = false;
document.selection.SetActivePoint( eePosLogical, 1, Line );
str = document.GetLine( Line );
if (str != “”)
{
document.selection.EndOfLine();
document.selection.DeleteLeft();
}

########################################

However, for just this task there
would be an easier solution then such an big script as shown above:

//Remove first sign from selected lines
redraw = false;
document.selection.Replace(“^.”,””, eeReplaceSelOnly | eeReplaceAll | eeFindReplaceRegExp);
document.HighlightFind = false;

//Remove last sign from selected lines
redraw = false;
document.selection.Replace(“.$”,””, eeReplaceSelOnly | eeReplaceAll | eeFindReplaceRegExp);
document.HighlightFind = false;