It's possible to colorize any Scintilla based widget (the editor part) in Komodo using a color scheme. In Komodo there is the "Fonts and Color" preferences that get applied to all scintilla widgets, but you can manually change individual scintilla widgets as you wish.
This macro changes the color scheme of the Command Output tab to use the "Dark" scheme.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | var Cc = Components.classes, Ci = Components.interfaces;
var schemeSvc = Cc["@activestate.com/koScintillaSchemeService;1"].getService(Ci.koIScintillaSchemeService);
var darkScheme = schemeSvc.getScheme("Dark");
var command_output = document.getElementById('runoutput-scintilla');
if (!command_output) {
// Might be Komodo 7 - as a sub-pane.
command_output = document.getElementById('runoutput-desc-tabpanel').contentDocument.getElementById('runoutput-scintilla');
}
var scimoz = command_output.scimoz;
var language = "Text";
var encoding = "utf-8";
var alternateType = false;
darkScheme.applyScheme(scimoz, language, encoding, alternateType);
|