build an interface+ python buttons

  • Luca Fiorentini

    Luca Fiorentini - 2012-09-22


    I downloaded the python script plugin and did a simple function to wrap custom xml tags around the selected text.
    Could it be possible to create and interface with some buttons (one for each tag) and execute it from there?
    Is there a better way to do this?

    Thanks for your time!

  • Dave Brotherstone

    You can't create an interface - there's a few people (me included) looking at getting that going, but it's not there yet. However, you can add toolbar buttons to run a specific script, so you could achieve something similar if toolbar buttons will do you.

    If you want to surround text with tags, you should look at the WebEdit plugin, and possible Zen Coding.  The first does exactly that, and the second does that, but without the toolbar buttons, although it can do a bit more with creating the initial html/xml.


  • Luca Fiorentini

    Luca Fiorentini - 2012-09-22

    Bad to hear about the interface but  WebEdit completely made my day!
    Thanks man!