Writing Komodo Editing Extensions in Python

Has anyone figured out how to write an extension for Komodo Edit 6 in Python?

+4
source share
2 answers

It's hard to say what you need to know, because if you have a Firefox Extension background email, moving to Komodo will be easier. If not, I would recommend a Mozilla resource, for example https://developer.mozilla.org/en/Building_an_Extension first get convenient written extensions.

The next step, I would look at the extensions at http://community.activestate.com/addons , and look at the source of interest to you.

If you are adding a user interface, you need to know the identifiers of the elements you want to add an overlay. You can find this information at http://svn.openkomodo.com/openkomodo/browse/openkomodo/trunk/src/ - most of the identifiers you need will be http://svn.openkomodo.com/openkomodo/view/ openkomodo / trunk / src / chrome / komodo / content / komodo.p.xul

The DOM inspector will also help you find these items.

There are two variants of Komodo venerable Mozilla extensions that I find indispensable - Venkman (JS debugger) and Extension Developer Extension . You will find them on the addon site above.

You mentioned that you want to write an extension in Python. This was done, but accessing the interface is much easier in JavaScript (and sometimes it can only be done in JS). python is great for writing components that don't need access to the user interface โ€” you'll find them in other extensions in pylib components and directories.

Komodo also comes with project templates for writing Komodo extensions. He will build the โ€œHello Worldโ€ extension out of the box, so you can use it as a springboard for your own work. But I would not miss these steps and would not jump directly at him.

Best place for further information: http://community.activestate.com/forums/komodo-extensions

Good luck Eric

+5
source

In addition to the good pointers provided by Eric, see Getting Started with Python Extensions . I wrote it for Komodo Edit 7, but I probably mostly apply to version 6. (Please edit the wiki text if it needs version-specific fixes.)

0
source

Source: https://habr.com/ru/post/1342869/


All Articles