#10105
ToadLoadin
Member

:-) I think it could be done with this macro:

// If nothing selected, select all.
var currentSelection = getSelection();

// A find'n replace using regular expression
// (in selected range only).
currentSelection.Replace("^s*$n", "", eeReplaceSelOnly | eeReplaceAll | eeFindReplaceRegExp);

// earase search keyword highlighting.
document.HighlightFind = false;

Then, you could use this macro to insert empty lines between each “none-empty” line (forgive my poor english):

// If nothing selected, select all.
var currentSelection = getSelection();

// A find'n replace using regular expression
// (in selected range only).
currentSelection.Replace("n", "nn", eeReplaceSelOnly | eeReplaceAll | eeFindReplaceRegExp);

// earase search keyword highlighting.
document.HighlightFind = false;