[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: Anders Lund <anders () alweb ! dk>
Date: 2007-12-30 21:47:09
Message-ID: 200712302247.10006.anders () alweb ! dk
[Download RAW message or body]
On Sunday 30 December 2007, Thomas Friedrichsmeier wrote:
> Therefore, the first wish would be the ability to force a *specific*
> version of a highlighting defintion to be used, e.g. by filename.
It is possible to select the highlight using the configuration dialog, either
by setting priority, by defining it in a filetype of by using a document
variable, possibly in a .kateconfig file. I think that covers that.
> Further wishes:
> - get and set <list/>s of keywords
> e.g. void setKeywordList(const QString &listname, const QStringList &list);
I don't know why we would want to edit the highlight files this way. Afterall
the user is blind in this case, as she can't possibly know for sure how the
list is used.
> - 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.
I agree that it would be nice to be able to get the context of a position in a
document. I can't remember off the head if the infrastructure exists in the
highlight class though. This information would be very valuable for
indentation for example.
> - 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.
This would be covered by the above if i am not wrong? It can currently be
done by checking the attribute.
> - ability to get and set the regexp defining a "word". See
> http://lists.kde.org/?l=kwrite-devel&m=119400167931455&w=2 .
First, there is no regexp, rather a list of characters defined as word
separators. And it's global to the highlight i believe.
I don't know if it is wise to make it writable. There are methods to use it
already, if not for getting the exact character list.
--
Anders
www: http://www.alweb.dk
jabber: anderslund@jabber.dk
_______________________________________________
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