Jan 30, 2015

Open big files in Komodo

Although Komodo is great, it will be broken on big files. The reason is costly syntax highlight.

Big files can be: too many lines; or big filesize.

To overcome this, create and run this macro "once".
After running, it will be persisted as a preference.
My setting is 200Kb and 5000 lines limit : )

// Let Komodo able to open big files by disable Syntax Highlight
var gprefs = Components.classes["@activestate.com/koPrefService;1"].
  getService(Components.interfaces.koIPrefService).prefs;
gprefs.setLongPref("documentByteCountThreshold", 200000);
gprefs.setLongPref("documentLineCountThreshold", 5000);
alert('All was set. Openning big files is OK right now');

No comments:

Post a Comment

New comment