|
From: Slava P. <sl...@je...> - 2002-08-26 20:50:43
|
Take a look at jEdit 4.1pre4, it adds an action (not bound to any
keystroke by default) to toggle between the various line separators. Its
called 'Toggle Line Separator'.
Slava
On Mon, 2002-08-26 at 16:38, Pete Prodoehl wrote:
>
> 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
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone? Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> --
> -----------------------------------------------
> jEdit Users' List
> jEd...@li...
> https://lists.sourceforge.net/lists/listinfo/jedit-users
|