John, thank you for your answer and for the pointer.
So you want to have a tool that operates with Show Comments false in > the HTML panel? > Yes... if I will use the embed-in-comments way to go. Anyway, that's not a requirement, it's just the simplest way I thought about embedding, but it might not be the simplest way to fully implement it (see below). Is there any other way to go that you whould explore? > > > > > I would like to find the way to selectively show the meta-info for any > > given html-node. I mean something triggered by a contextual menu, or a > > mouseover, or anything that could just show what the developer is > > interested in. > > One solution is another HTML side panel, one that listens for event > onObjectBoxSelected(objectBox) > onObjectBoxUnselected(objectBox) > > From the object box you can get the element and find comments around > it by some rule you create, parse the comment and display it in the > side panel. > That's a very clean solution, and it seems also quite straightforward to implement! Thank you. A more advanced implementation that I might need is that the meta-info embedded into the comments might also be sort of hierarchical, so I will have to navigate through many comments in order to build a tree of meta-info extracted from the comments. Do you see any problem in that sort of implementation? Should I use some other way to embed the meta-info? > > > > > We can eventually change the way DRYML embeds its meta-info by > > changing the comments for some custom tag attribute or anything else > > that might simplify that task to Firebug, although a sort of meta- > > commenting could be extendable to any other context (not just DRYML). > > > > Is there any canonical/suggested way to do that? What would you > > recommend? Is there any extension that could give me any hint about > > how to implement it? > > Any of the current side panels are synced to the selection so you can > use the same solution; I think they may use panel events instead of > the one I mentioned above. > At this moment, the difference between "listen for event" (onObjectBoxSelected(objectBox)) that you mentioned before and "panel event" is not clear to me, anyway I suppose it will become evident when I will dive into it. :-) > > As for the structure of the extension, they are all pretty similar, > and Honza has some great tutorial info > > http://www.softwareishard.com/blog/firebug-tutorial/extending-firebug-hello-world-part-i/ > > Great! Thank you! dd -- You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/firebug?hl=en.
