Ted2 "plugins"

This topic contains 3 replies, has 2 voices, and was last updated by  nerobot 2 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5005

    Hezkore
    Participant

    I remember reading some time ago about the possibility of Ted2 plugins.
    You were supposed to be able to write your own file viewers and editors etc. without actually modifying the Ted2 src.
    What’s the latest update on that, not done yet, canceled or already in there?

    I’ve got some custom file formats that would be very nice to view in the Ted2 IDE.

    #5015

    nerobot
    Participant

    You should add your code into ted2 and recompile it.

    Look inside of ted2document.monkey2. There is

    And see how it works on existing docs: jsom/xml/monkey2-document.

    In short, you have to register file extension you want to open with your custom viewer and then override method OnCreateView() – add here creation of your custom view, that will be added as new tab in editor.

    #5033

    Hezkore
    Participant

    Ah okay.
    So there is no way to do this via some sort of external plugin system?
    It feels like having to recompile Ted2 sorta ruins the idea for me.
    I have a bunch of custom formats I’d like to load/view in Ted2 and also share with others without having to send them a completely new Ted2 version.
    Thanks for the info!

    #5088

    nerobot
    Participant

    You can share your code here on forum and I  or someone else could easily implement it (via just add some #imports).

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.