jEdit join without spaces


/ Published in: Java
Save to your folder(s)



Copy this code and paste it in your HTML
  1. int start = textArea.getSelection(0).getStart();
  2. text = java.util.regex.Pattern.compile("(?sm)$.*?^[ \t]*").matcher(textArea.getSelectedText()).replaceAll("");
  3. textArea.replaceSelection(text);
  4. textArea.setSelection(new Selection.Range(start, start + text.length()));

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.