finder.find(closeCommentStart, closeComment, true, false, false, false);
finder.replace("", false);
// Find and replace the opening comment so that it doesn't affect the closing comment replace
finder.find(openCommentStart, openComment, true, false, false, false);
finder.replace("", false);
selectionLength = selection.length() - openComment.length() - closeComment.length() + 1;
} else {
if(selectioner.getText().endsWith("\n") && !selectioner.getText().startsWith("\n")){
// add newlines if this looks like a newline-to-newline comment, to be pretty
openComment = openComment.concat("\n");