Komode: modeline support for Komodo

Posted by scoates on 2007-03-14 18:34

Here's my first entry in the Extensibility Challenge: Komode.

This package contains two macros: Komode and Flush the Komode.

Install this with Toolbox->Import Package...

Here are the descriptions (from the macros).

Komode

/**
 * Komode  v1.0  (pun intended)                             ______
 * Modeline Support for Komodo IDE 4.0                      \     \
 * copyright © 2007 Sean Coates                            |`\_____\
 *  sean[ta]php.net                                        |` |    |
 *                                            __-====-__   |  |    |
 * You may do anything you                   (~(       )~)_|  |    |
 * like with this macro                      {~~-====--~~:  \ |    |
 * after April 1, 2007.                       \~------~~/----`+----/
 *                                             \         \___     /
 * This code is made available                  )------\     \  (
 * under the Fair License.                     (_________________)
 *
 * Usage of the works is permitted provided that this instrument is retained
 * with the works, so that any entity that uses the works is notified of this
 * instrument. DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.
 * (http://www.opensource.org/licenses/fair.txt)
 *
 * Commode art borrowed from: http://www.scopie.com/asciiart/toilet.asp
 *
 * To use:
 *  Add a line, like above (komode: params=go here). Must be either at the
 *  start of a line, or preceded by a whitespace character.
 *
 *  Parameters:
 *   lineends|linends|le: Line ending format (should be autodetected, anyway)
 *   language|syntax: Use this language for UDL parsing
 *   codepage: file codepage/encoding. Use utf8. You know you want to.
 *   tabwidth|tab: size of tab sharacters
 *   tabs|notabs: don't expand (or do) tab characters
 *   indentwidth: size of indents
 *
 * Note: it also respects some vi[m] directives, but a komode line will
 *  trump these.
 *
 * Note2: if a tabwidth is set, but indentwidth is not, indentwidth assumes
 *  the value of tabwidth. This is probably what you want in the first place,
 *  but if it isn't, just set the indentwidth explicitly.
 *
 * Here's the komode line for this file:
 * komode: le=unix language=javascript codepage=utf8 tab=4 notabs indent=4
 *  Enjoy.
 */

If this competition can be won on puns alone, the rest of you might as well stop trying (-:

S

AttachmentSize
Komode.kpz13.78 KB