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

List:       kwrite-devel
Subject:    Re: [Bug 154810] word completion: detect filetype and populate word
From:       Thomas Friedrichsmeier <thomas.friedrichsmeier () ruhr-uni-bochum ! de>
Date:       2007-12-30 20:17:08
Message-ID: 200712302117.13122.thomas.friedrichsmeier () ruhr-uni-bochum ! de
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Hi,

On Sunday 30 December 2007, Anders Lund wrote:
> Ok, I make a note to work on such an interface for the kde 4.1 release.
>
> OT: thoughts on what it could contain can be sent directly to kwrite-devel
> at kde org.

ok, here are some things which I think might be useful in this interface. The 
general idea is to make is to make it easier to build some (smart) 
highlighting on top of the powerful highlighting engine already provided by 
kate.

The main drawback to consider is that this is turning the syntax highlighting 
definitions into a part of the API in a way, i.e. applications wanting to 
make advanced use of a highlighting definition will need to assume certain 
aspects, such as the names of keyword lists, and contexts.

Therefore, the first wish would be the ability to force a *specific* version 
of a highlighting defintion to be used, e.g. by filename.

Further wishes:
- get and set <list/>s of keywords
e.g. void setKeywordList(const QString &listname, const QStringList &list);
- information about the current highlighting contexts, e.g. the name of the 
most specific context containing a specified range (and ideally contexts 
would be smart ranges, so you can easily figure out information about all 
parent and child contexts, and retrieve the boundaries of the corresponding 
smart ranges, as well). This would be very useful both to provide more 
detailed highlighting, and to provide different code completion lists in 
different contexts.
- on a more basic level, the ability to find out at least, whether a specified 
cursor is inside a comment region, or perhaps in a string literal.
- ability to get and set the regexp defining a "word". See 
http://lists.kde.org/?l=kwrite-devel&m=119400167931455&w=2 .

Regards
Thomas

["signature.asc" (application/pgp-signature)]

_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.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