Return to Snippet

Revision: 52068
at October 12, 2011 18:41 by guai


Initial Code
int start = textArea.getSelection(0).getStart();
text = java.util.regex.Pattern.compile("(?sm)$.*?^[ \t]*").matcher(textArea.getSelectedText()).replaceAll("");
textArea.replaceSelection(text);
textArea.setSelection(new Selection.Range(start, start + text.length()));

Initial URL

                                

Initial Description

                                

Initial Title
jEdit join without spaces

Initial Tags

                                

Initial Language
Java