[prev in list] [next in list] [prev in thread] [next in thread]
List: kwrite-devel
Subject: Re: [Kwrite-devel] Kate: Syntax highlighting
From: Cullmann Christoph <crossfire () babylon2k ! de>
Date: 2001-04-27 22:58:58
[Download RAW message or body]
Am Freitag, 27. April 2001 23:57 schrieb Joseph Wenninger:
> Hi
Hi,
I am the same opinion like Joseph, send your code as tar.gz to me and/or
jowenn and we will take a look, it sounds interesting, if it is nice/usable
we will integrate it or you can help us to do that, like you want, you will
be add to authors.
cu
Christoph
>
> >recently I extended KWrite's syntax highlighting such that a highlighting
> >description no longer had to be hardcoded but instead could be written in
>
> XML.
>
> >Some days ago I discovered Kate and learned that a similar thing has been
> >done there, too.
> >
> >After comparing both approaches I think that mine has a couple of
>
> advantages
>
> >(IMHO of course):
> >
> >* the descriptions are not merged into a single big file, i.e. there's one
> >XML-file per language
>
> This is already done, if you look into kdebase/kate in the cvs for KDE 2.2,
> you'll see each
> language has it's own .xml file.
>
> >* names are used for contexts instead of numbers
>
> Could be a nice feature
>
> >* arbitrary keyword lists are possible (not just "keywords" and "types")
>
> Is already done in current CVS, you can add as many lists as you want and
> give them names
>
> >and most of all:
> >* a TextLine does not hold just a single line end context number but a
>
> stack
>
> >of context numbers, which makes writing an XML highlighting decription
>
> easier
>
> >as there now is a notion of returning to the "calling" context. This means
> >that a context, say for comments, may be used from several other contexts,
> >say the base context and the preprocessor context (in the C++
>
> highlighting).
>
> could you send me your code, I thought about implementing such a stack, but
> couldn't figure out an efficient way
>
> >another thing I'm about to add will be inheritance of items from other
> >contexts, simplifying the description of several similar contexts.
>
> Would be interesting
>
> >Some (small) things are missing in my approach, like the lineStart flag or
> >case insensitive keywords. These would have to be integrated.
>
> Case sensitive keywords are already supported in KDE 2.2 CVS for
> Kwrite/Kate
>
>
> I think it would be interesting to merge our approaches into one for KDE
> 2.2 CVS.
>
>
> Kind regards
> Joseph Wenninger
>
> _______________________________________________
> Kwrite-devel mailing list
> Kwrite-devel@master.kde.org
> http://master.kde.org/mailman/listinfo/kwrite-devel
--
| | / / - get an edge in editing -
| | / / »»»» GET KATE ««««
| |/ / a fast and capable multiple document,
| \ multiple view text editor for KDE
| |\ \ cullmann@kde.org
| | \ \ http://devel-home.kde.org/~kate
_______________________________________________
Kwrite-devel mailing list
Kwrite-devel@master.kde.org
http://master.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic