ActiveState Powered by ActiveState

ActiveState Community


placeholder snippets

Posted by dereine on 2008-04-13 09:32
OS: All / Any

i used some cool features for the gedit editor on linux
as you see here: http://www.youtube.com/watch?v=dUiTELzVYZo&fmt=18
this system is called placeholders
is there any similar system for komodo ? that would be more than awesome

in addition is it possible to select multiple elements and edit them at the same time
as you see http://e-texteditor.com/ in the screencast

another request:
is it possible to use komodo like http://www.youtube.com/watch?v=EljTfSVjsVw&feature=related ??

ToddW | Mon, 2008-04-14 13:52

  • Yes, you can also do this with Komodo's snippets (Note: the placeholders are called "tab stops" in Komodo and the insert snippet from partial text is called "Abbreviations", in case u want to look up the Komodo help on it).

    If you create a snippet with the following (create the snippet in the "Samples->Abbreviations->PHP" folder):

    for ($[[%tabstop:i]]=[[%tabstop:0]]; $[[%tabstop:i]] < [[%tabstop:]]; $[[%tabstop:i]]++) {
        [[%tabstop:#code]]
    }

    Then using Komodo's "Abbreviations" insert feature, after you type "for" you would normally press the abbreviations keybinding (Ctrl-T by default, but can be customized in Komodo's keybinding preferences).

  • It is not possible in Komodo to select multiple pieces of text and then edit them simultaneously.
  • The alignment feature is also not possible in default Komodo. It is possible to implement this through a Komodo macro.
  • Cheers,
    Todd

-->