|
From: Pete P. <pet...@cy...> - 2002-08-26 20:38:44
|
I've got a bsh macro that can change the line separator used in the current
buffer, I'm using this:
buffer.setStringProperty("lineSeparator","\r");
jEdit.propertiesChanged();
which seems to work. My first question is, am I doing it right? (Should I
use jEdit.BufferUpdate?)
And the second quesition is how would I make it rotate between the 3 options
\r, \n, and \r\n?
I've tried using some if/else logic borrowed from other macros but have
failed thus far. BeanShell and Java both make my head hurt a little bit...
(I have looked at the docs, I still ain't getting it... again, I'm trying to
add to jEdit some things I miss from BBEdit.)
thanks...
Pete
|