[Kommander-devel] KTextEditor in Kommander

Eric Laffoon eric at kdewebdev.org
Sun Sep 3 04:35:35 EDT 2006


Hi Andras,
this one's for you. ;-)

On Thursday 17 August 2006 4:44 pm, Eric Laffoon wrote:
> On Thursday 17 August 2006 12:14 pm, Andras Mantia wrote:
> > On Thursday 17 August 2006 19:42, Eric Laffoon wrote:
> > > On Thursday 17 August 2006 3:37 am, Andras Mantia wrote:
> > > > On Thursday 17 August 2006 12:33, Andras Mantia wrote:
> > > > > Highlighting mode cannot be changed right now. The solutions
> > > > > would be: - change from the context menu
> > > > > - a dropdown combo in the editor dialog
> > >
> > > The highlighting is great, except we really only have two absolute
> > > blocks. It would be more meaningful if we did...
> > > @function() - highlighted - ("content") not highlighted
> >
> > That is possible.
>
> Looking for svn commit. ;-)

We'd like to make a release of Kommander. Can we get this done shortly?
>
> > > @functiongroup.function - probably same highlighting as function
> >
> > This one should already work.
>
> Yes.
>
> > > @widget.method - ideally different highlight
> >
> > This will not work, as highlighting is based on regexp matching and not
> > on content. Except is if we list all the possible function names in the
> > highlighting file and we assign a different color to them.
>
> That's why I attached the file. You need a PHP CLI executable to run it and
> set the correct path to get the function names. Unfortunately I was mixing
> stable and unstable on my system and seem to have lost CLI so I have to
> tend to that when I have a minute I'm not dog tired... but last I used it
> it was working great.

Okay, let's stick to C++. Look in kommander/widget/specials.cpp and tell me 
what you see. You can not only derive a list quickly and easily, but you can 
group it by function group. Just parse "insert([group]::[function]"... and 
there is also a few "insertMacro(Kommander::[function]".

So it should be easy not only give a different color for functions, but even 
for types of functions.
>
[...]

I will get plugins up for testing shortly and I'd like to make a release, do a 
tutorial article and do some fund raising. Just in time probably. ;-)
-- 
Eric Laffoon
Project Lead - kdewebdev module


More information about the Kommander-devel mailing list