Snippets code from my daily experience


Hi I’m a developer and many times I need to simplify my work creating bonsai applications.

I use extensively Mozilla products like Firefox and Thunderbird and I’ve created extensions fo them.

Some code written for my extensions is a bit reusable and here I share it

Do you need to contact me? You can write to davide d0t ficano at gmail d0t com

You can find me on gihtub or on dafizilla forum



  1. Davide,

    I just love your viewsourcewith plugin. Is there any way to have the default editor pop up automatically and without user intervention when I focus on a textarea (mozilla) or the body of a message I’m writing (thunderbird)? This would help me a lot 🙂


    Comment by David Fetter — August 9, 2009 @ 9:22 pm | Reply

    • Hi,

      What you ask is not possible at this time, I’m sorry 😦
      The quickest way to open editor is focusing by hand and use shortcut or toolbar button

      Please for further requests consider the Feature Request or Bug Request at Sourceforge

      Comment by dafi — August 10, 2009 @ 6:29 am | Reply

  2. Hey im a cuban software developer, i use komodo edit for my daily work and im planing to create a extension to work with Codeigniter( PHP Framework, making komodo the best IDE for work with that framework. I have experience in Python and javascript but never created an addon with Mozilla Technology. Please if you are interested in work on that project would be great make a work togeter .
    Reggards from Cuba
    Dairon Medina

    Comment by Dairon Medina — June 1, 2010 @ 6:19 pm | Reply

    • Hi, at this time I’m very busy so I can’t help you.

      good luck for your interesting project

      Comment by dafi — June 2, 2010 @ 9:42 am | Reply

  3. I can’t find another way to contact you, but regarding the snippet on – as of Firefox 6, it should be updated to use encodeURIComponent instead of encodeURI, since data URIs appear to support fragment IDs now. It’s backwards-compatible too. (Ran into a bug in RSS Ticker because of it.)

    Comment by cfinke — August 25, 2011 @ 5:26 am | Reply

  4. Hi Davide,
    I’m using your ColorInfoTip in Komodo Edit 6 (I can’t believe something like this isn’t incorporated into Komodo by default). I’ve recently been playing with Komodo 7 and I get macro errors with ColorInfoTip, and the macro doesn’t run. From what I gather, this has something to do with changes that ActiveState made in their macro coding involving ‘view.document’. The error in question is this:

    “Error while running in macro ColorInfoTip:

    TypeError: ko.views.manager.currentView.document is undefined

    exception[fileName] = chrome://komodo/content/project/peMacro.js
    exception[lineNumber] = 814”

    Is there a quick fix for this? A bit of code I can change? I’ve never worked with Komodo macro language.


    Comment by Tashe Delek — December 8, 2011 @ 6:56 pm | Reply

    • Komodo has a builtin ColorTip, hold down CTRL key (or cmd on Mac) while moving mouse over a color definition string.

      My macro is no longer needed

      Comment by dafi — December 8, 2011 @ 7:06 pm | Reply

  5. Ha! So it does. I’ve always used your Color Tip macro since version whatever of Komodo, and it just transferred from one upgrade to the next– so I never needed to look for the built-in color popup function.


    Comment by Taske Delek — December 8, 2011 @ 7:17 pm | Reply

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a free website or blog at

%d bloggers like this: