XULEdit is the extension that provides live XUL editor for ActiveState's Komodo Edit and Komodo IDE. The original idea comes from Live XUL Editor by Ted Mielczarek. The main purpose is a quick testing of any XUL code or a previewing of the currently edited XUL documents.
After succesfull download you can install this extension on the Komodo Edit or the Komodo IDE from ActiveState. The minimal required version is 4.0 but must be mentioned that XULEdit is tested only on 4.2.* and 4.3alpha1 versions of Komodo Edit and 4.2.1 version of Komodo IDE.
Here you can download all released versions of XULEdit:
| Version | XPI package | Sources |
|---|---|---|
| 0.4a | xuledit-0.4a.xpi | N/A |
| 0.3 | xuledit-0.3.xpi | N/A |
| 0.2 | xuledit-0.2.xpi | N/A |
| 0.1 | xuledit-0.1.xpi | N/A |
Items higlighted by the red color are tasks waiting for implementation, items higlighted by the red color are tasks which are implemented now (but not finished yet). Version marked with asterixs is the currently developed version.
CTRL+F), replacing (CTRL+H) and go to line (CTRL+G) should work as in Komodo selfkomodo/content/bindings/views-buffer.xml, ln. 177* Version 0.4 *
added context menu for accessing main XULEdit's commands (see the screenshot at the right)<window>, <dialog>, <overlay> and <prefwindow>
<window> or <dialog>). <window>, <dialog>, <prefwindow> and <overlay> – trough the welcome screen (like on the screenshot below). These templates should be editable through the Preferences dialog.
<xml-stylesheet ... ?> code in the XUL source. I used this code for this task:
// Pointer to content document of the <iframe> element
var preview_doc = this.mPreviewWin.contentDocument;
// Root element of previewed document (e.g. <window>)
var preview_doc_elm = preview_doc.documentElement;
try {
var style_elm = preview_doc.createProcessingInstruction("xml-stylesheet",
"href=\"chrome://xuledit/skin/preview.css\" type=\"text/css\"");
preview_doc.insertBefore(style_elm, preview_doc_elm);
} catch(e) {}
About dialog<textarea> element used Komodo's <view> element which implements Scintilla editing component© Copyright ondrejd 2007. Licensed under Mozilla Public License. Last edited 4.1.2008.