[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jedit-users
Subject:    Re: [ jEdit-users ] Whitesmiths brace style?
From:       Klimetschek () t-online ! de (Alexander Klimetschek)
Date:       2003-06-28 16:01:25
[Download RAW message or body]

Slava Pestov schrieb:
> On Fri, Jun 27, 2003 at 12:19:24PM -0600, Jabel D. Morales wrote:
> 
>>Hi.
>>
>>I am trying to use the Whitesmiths brace style, which follows the 
>>following format
>>
>>if (condition)
>>   {
>>   statement1;
>>   statement2;
>>   }
>>
>>on jEdit.
> 
> 
> Edit the <jedit install dir>/modes/java.xml file and change this:
> 
> <PROPERTY NAME="indentOpenBrackets" VALUE="{" />
> <PROPERTY NAME="indentCloseBrackets" VALUE="}" />
> <PROPERTY NAME="indentNextLine"
> 	VALUE="\s*(((if|while)\s*\(|else\s*|else\s+if\s*\(|for\s*\(.*\))[^{;]*)" />
> 
> To this:
> 
> <PROPERTY NAME="indentNextLines"
> 	VALUE="\s*(((if|while)\s*\(|else\s*|else\s+if\s*\(|for\s*\(.*\))[^{;]*)" />
> 
> (Note indentNextLine -vs- indentNextLines).

Or try the JavaStyle plugin. But that only works after some extra click 
or button hit, not while typing.

Alex



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
-- 
-----------------------------------------------
jEdit Users' List
jEdit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic