> The main thing I do not like is that it flushes all lines by default to
the left.
See the Format options in header of Edit|Configure|Base. Set 3{Format to 1
to indent explicit definitions.
> so as not to affect code that I manually formatted.
This would be possible, though I always want to format the entire script.
But the selection could be done as another menu option in Edit|Selection.
> Ideally, the formatter can be a J function that is called by the editor?
The formatter is a J function, in script ~system/util/pp.ijs, with source
http://jsoftware.com/websvn/wsvn/base8/trunk/main/pp/ .
On 17 August 2015 at 09:08, 'Pascal Jasmin' via Beta <[email protected]>
wrote:
> I can say that I want my formatting to be different than what ctrlshift P
> does.
>
> The main thing I do not like is that it flushes all lines by default to
> the left. I'd want every line other than the definition, ':' and ')' to be
> indendented one space.
>
> I'd also rather have the function based on selection rather than the whole
> script. So as not to affect code that I manually formatted. (ctrlshift P
> is not easily undoable btw)
>
> I don't think many people would complain about these 2 changes?
>
> Ideally, the formatter can be a J function that is called by the editor?
> If I don't like your formatter, I can change it, but I get to see the code
> for a fairly easy template to modify.
>
>
>
> ----- Original Message -----
> From: chris burke <[email protected]>
> To: Beta forum <[email protected]>
> Cc:
> Sent: Monday, August 17, 2015 11:47 AM
> Subject: Re: [Jbeta] comment keys
>
> OK, this is possible.
>
> I never use TAB and wonder whether what you want is covered (or should be
> covered) by the Script|Format command (Ctrl+Shift+P)? That is, do you want
> to explicitly set your formatting, or really just want to pretty print your
> script in some standard way?
>
>
> On 17 August 2015 at 07:46, Dan Bron <[email protected]> wrote:
>
> > Yes, I’d support that change.
> >
> > Also, one thing I’m missing in JQt from the old Windows C++ frontend is
> > highlighting/selecting multiple lines and then pressing TAB to indent
> them
> > one level, simultaneously (and SHIFT+TAB to outdent them one level
> > simultaneously).
> >
> > If you restore that behavior, however, you might want to consider
> offering
> > an option to set what “indent one level” means (e.g. a literal TAB
> > character, 8 spaces, 4 spaces, 2 spaces, whatever).
> >
> >
> > -Dan
> >
> > > On Aug 17, 2015, at 10:38 AM, chris burke <[email protected]>
> wrote:
> > >
> > > The Jqt editor currently uses Ctrl+Shift+N to comment lines and
> > > Ctrl+Shift+B to uncomment them. These keys have been used in J for many
> > > years, but are non-standard.
> > >
> > > The usual practice in text editors is to use Ctrl+/ as a toggle and
> > > Ctrl+Shift+/ as a block toggle, i.e, in J804:
> > >
> > > Ctrl+/ toggle NB. on/off on selected lines
> > > Ctrl+Shift+/ toggle Note on/off, i.e. wrap selected lines in
> > Note''
> > > .... )
> > >
> > > Is this OK?
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
>
> >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm