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 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.
*//**
* Flush the Komode v1.0 (pun intended) ______
* Modeline Builder 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:
* You probably want to be running my komode script (in the same package as
* this macro).
*
* Simply position your cursor where you'd like to insert (flush) a komode
* line for the current buffer, and launch the script.
*
* The script will put something like the following into your document:
* komode: le=unix language=javascript codepage=utf8 tab=4 notabs indent=4
*/If this competition can be won on puns alone, the rest of you might as well stop trying (-:
S
| Attachment | Size |
|---|---|
| Komode.kpz | 13.78 KB |