Viewing 1 post (of 1 total)
  • Author
    Posts
  • #5765
    Yutaka Emura
    Keymaster

    // Delete all blank lines in the active document (JavaScript for EmEditor)
    Redraw = false;
    nLines = document.GetLines();
    for( i = 1; i < nLines; i++ ){
    if( document.GetLine( i ) == "" ){
    document.selection.SetActivePoint( eePosLogical, 1, i );
    document.selection.Delete();
    i--;
    nLines--;
    }
    }
    Redraw = true;

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.