Using co-editing ECF with Python

I can use the general ECF editing function , where Java is excellent perfectly. When I try to do this with Python files, it also works, but there is no syntax highlighting.

I installed PyDev to get syntax highlighting, but the "share editor" option is missing from the context menu. I uninstalled PyDev and the option returned. I installed the Dynamic Language Toolkit in the hope that its Python syntax highlighting was compatible, and I got the same effect (there is no "share editor" option in the context menu).

Is there a way to share an editing session with Python files and syntax highlighting?

+3
source share
2 answers

You need to add the context menu to the PyDev editor manually.

You can do this by installing a plugin with the following in plugin.xml:

<plugin>
   <extension point="org.eclipse.ui.menus">
  <menuContribution 
        locationURI="popup:org.python.pydev.editor.PythonEditor.EditorContext">
    <dynamic
        class="org.eclipse.ecf.docshare.menu.DocShareRosterMenuContributionItem"
        id="com.foo.MyVeryOwnEditorContextID.dynamic1">
    </dynamic>
  </menuContribution>
</extension>
</plugin>

Here org.python.pydev.editor.PythonEditor.EditorContextis the context identifier of the PyDev editor.
If you want to add a context menu item to another editor, you will have to change this identifier. It can be found by pressing Shift- Alt- F1when used in the editor to which you want to add it.

com.foo.MyVeryOwnEditorContextID.dynamic1 just have to be a unique identifier of your choice.

Then you have to put the .jar plugin file in the plugins folder in the eclipse directory.

+2
source

Github ECF4PyDev, ECF PyDev. , Eclipse.

Eclipse, "" → " ...", "". :

ECF PyDev

http://gilberterik.github.com/ECF4PyDev

ECFPyDev. , . . , - . Eclipse.

+1
source

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


All Articles