This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Intellisense coloring

Tags: None
(comma "," separated)
User avatar
vayu
Registered Member
Posts
129
Karma
0
OS

Intellisense coloring

Sat Jun 15, 2013 6:34 am
Is this a kdev-python feature or a kdevelop feature that works with kdev-python?

How much could the existing code be leveraged for adding a plugin to Kate?

At first it looked like too much. Now I really like it. So much so I have a fear that the same thing will happen to me that happened with syntax highlighting. After getting used to syntax highlighting I almost can't program in black and white. If I get used to intellisense, then I'll want it everywhere.

I use kate a lot. I've been using Eclipse for my python programming, I often have a thought or idea and even though my project is all set up in Eclipse I still use kate to browse project files rather than Eclipse. If I get used to intellisense in kdev-python I'm pretty sure I'll need it in Kate.
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS

Re: Intellisense coloring  Topic is solved

Sun Jun 16, 2013 1:11 pm
Hi,

"intellisense" is a Microsoft PR word we don't use at all; it's called "code highlighting", or if you want to refer to KDevelop's colorful highlighting in specific, something like "rainbow highlighting", or "semantic highlighting". :)

The highlighting code itself is completely in KDevelop and kdev-python does not do anything in specific to get those colors. The actual colors are painted by the text editor, KDevelop just tells it which ones to use for what text range; so from that point, it would work in kate as well (i.e. if you had the information about the highlighting, kate could display it). However, the actual information contained in the highlighting (e.g. which objects are classes, functions, member variables etc.) is only known to kdev-python, and cannot easily be given to kate. This is because kdev-python uses KDevPlatform's framework to compute that information, and that framework is obviously not available in kate.

Simply speaking, KDevelop effectively is the same editor part as kate, with a framework around it which allows for said information (which object in the code means what etc.) to be computed and managed in an efficient way. That information is required to compute the rainbow color highlighting correctly. Thus, making it available to kate doesn't really make much sense (you'd pretty much end up with KDevelop again if you were copying all the relevant code to kate).

Greetings,
Sven


I'm working on the KDevelop IDE.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]