PHP Classes

Komodo Edit Keys: List and compare Komodo Edit key bindings

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 142 All time: 9,181 This week: 455Up
Version License PHP version Categories
komodo-edit-keys 1.0.0Free for non-comm...5.3PHP 5, Tools, Parsers


This class can list and compare Komode Edit key bindings.

It can read and parse Komodo Edit's key bindings by category HTML output file.

The class can generate a HTML page listing with key bindings by key highlighting key bindings that conflict with each other.

It can also compare different key binding schemes.

Innovation Award
PHP Programming Innovation award nominee
February 2014
Number 7
Komodo Edit is a popular IDE used by many PHP developers. It provides means to define bindings for actions triggered using keyboard keys.

This class can parse files that define key bindings for Komodo Edit in order to list them and highlight any conflicts.

Manuel Lemos
Picture of Joseph
Name: Joseph <contact>
Classes: 3 packages by
Country: United States United States
Age: ???
All time rank: 2709372 in United States United States
Week rank: 264 Up31 in United States United States Up
Innovation award
Innovation award
Nominee: 2x


Komodo Edit is a free text-editor specifically designed for writing program code, and it makes an OK document editor also. It has many command-shortcut-keybindings that allow you to press specific keystrokes to activate internal commands. It also allows the user to create "macros" and "snippets," commands and strings of characters that can also be "bound" to a keystroke of the user's choice. If you want to create your macros and snippets, you need to bind them to keystrokes that are not in conflict with Komodo's command-keybindings. Komodo Edit will list the keybindings, but only by category. It is much easier to keep track of where there is an unbound keystroke available if they are listed by key. This PHP program will convert Komodo's "keybindings by category" HTML-output-dump-pagefile into an HTML page listing "keybindings by key". It will highlight keybindings that conflict with each-other. It can also compare and contrast different keybinding schemes. It can also include a "groomed" version of the original "keybindings by category" tables with the keys dressed nice to read them, again showing conflicting keys and comparing/contrasting different schemes. When the groomed category tables are included, page display options include one full page, side-by-side, or top-over-bottom stacked. There is also a navigation menu with quick-click to each key, and if included, category tables. Once you process your key bindings list with this PHP program, save the output HTML from the browser* (right click on the page and "save to file") to the file of your choice on your computer where you use Komodo Edit {*at the time of this writing, Google's Chrome will alter the link addresses when "saving HTML page to file" from a simple relative-to-page format ("#destID") to a complete absolute address (like "http://localhost/SoftMoon/Komodo/convert_keybindings_table.php#destID") and these links will then no longer work correctly when we later call this file using a "file://" URL as shown below. Use Firefox to --create-- a static copy of these tables, which can then be --viewed-- in Chrome, the latter which at this time more fully supports the given HTML5.}. Then open the folder where you just saved the file, and open the file you just saved in another window of your browser. This will give you a "file://" URL in your browser's address bar; copy it to the clipboard. In Komodo Edit's right-side-toolbar, where snippets, macros, etc. are stored, right-click and Add > New URL. Paste the URL into the URL field. I like to bind it to Alt+F1 for quick access; or you can just click on it in the toolbar. This will quickly open the "keybindings by key" HTML table in your default browser without needing an active server/PHP setup (for as long as you don't change the bindings). Firefox is my "default" system browser, but at this time of writing, "Blink" browsers (current Chrome, Opera) yield the best result when viewing the HTML5 output of this program. To get Komodo Edit to open the static-copy saved as shown above in the specific browser of your choice, first locate that browser's .exe file on your computer. Opera, for instance, is at "C:\Program Files (x86)\Opera\opera.exe" on my MS-Windows® system. Then in Komodo's toolbar, create a new Macro similar to the following JavaScript: ko.browse.openUrlInDefaultBrowser( "file:///C:/Users/user/documents/Komodo/keybindings_by_key.htm", "C:\\Program Files (x86)\\Opera\\opera.exe" ); Note above how we must double the backslashes in the path-to-Browser because the backslash is an escape character in JavaScript strings. For more info, and further Komodo Edit support files (including the 339 Unicode international extended-character snippets listed in the demo files), see: PS due to the file name restrictions that places on file names, please rename the following file in the package: Komodo_Keybindings_-Default-.htm becomes: Komodo Keybindings [Default].htm This latter name with spaces is the default name that a browser such as Firefox will give the file when asked to "save the HTML source-file".

  Files folder image Files  
File Role Description
Plain text file convert_keybindings_table.php Class Komodo support tool
Accessible without login HTML file keybindings_by_category.htm Data example of Komodo's output
Accessible without login Plain text file Komodo_Keybindings_-Default-.htm Data example of Komodo's output showing default keybindings
Accessible without login Plain text file readme.txt Doc. read it

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,181
This week:455Up