tor, 11 03 2010 kl. 01:35 +0000, skrev Carnë Draug:
> On 10 March 2010 22:38, Søren Hauberg <[email protected]> wrote:
> > I don't think we should ask users to make local modifications of these
> > files (even if it is easy).
>
> It wouldn't be asking the users to do it. It would be to have a list
> of the most used/main functions. And then, just add a 2-line comment
> saying that more functions can be added by the user, in that context
> block, and that to obtain a list of functions in octave, to use
> __list_functions__ . maybe also explain the reason why not all
> functions are there. This is a small thing and it would help a lot. I
> didn't knew about __list_functions__ and had to write a Perl script
> that extracted all of them from your website.
I don't understand what you mean. You want users to be able to tell
GtkSourceView which function names to highlight, right? If so, how are
they going to be doing that without editing the 'octave.lang' file that
comes with GtkSourceView?
> > We, however, also allow
> >
> > #{
> > This is a comment
> > #}
> >
>
> I didn't knew about the Octave version of block comments. I though
> only the same as Matlab worked. I'll change this in the metadata and
> change the syntax highlight as well.
Great!
> I think this can be easily dealt with. I'll have a 18 hours travel
> tomorrow so loads of time to do it.
Let us know how it turns out.
> > P.S. When I open an Octave file in gedit it defaults to formatting it
> > like it was Objective-C (that language also use the .m extension). If
> > you're going to talk to the GtkSourceView developers, it would be nice
> > to hear if this is a problem that can be dealt with.
>
> I also had that problem but only for the first few times. I don't know
> why, maybe it keeps track of how many times it used each syntax and
> uses the most used when there's more than one option. All I know is
> that it no longer selects Objective-C.
Hmm, that doesn't really match my experience. I guess I should ask the
developers.
Søren
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev