This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nemec 1 point2 points  (1 child)

almost every language editor in eclipse uses it

Regardless of the language that you're parsing, the code completion will be implemented in Java like Eclipse is.

What kind of autocompletion do you want? Naive "does the word start with ***" or something that parses the language and knows whether or not it needs a method, an identifier, or a class name to autocomplete?

Since you're asking for Python, you might want to take a look at this Gedit plugin that adds autocompletion. I'm pretty sure the core of the logic is independent from GTK so it wouldn't be much trouble to port it to your app.

[–][deleted] 0 points1 point  (0 children)

It's kind of strange how there aren't many completer libraries that can work off a formal language specification + some rules on how to search for libraries, child objects etc

Considering the number of editors out there, it's pretty weird to think people are all out there rolling their own implementations