Skip to content

Instantly share code, notes, and snippets.

/**
* Theme/Plugin "activates" the plugin
* Allow designers/developers to choose what and how they use KST
*
* @since 0.1
*/
public static function init( $settings ) {
/**
* KST itself needs options so just require the class for everyone
* @see settings_core.php
[user]
name =
email =
[color]
diff = auto
status = auto
branch = auto
interactive = auto
[color "branch"]
current = yellow reverse
# java -jar ~/Library/jEdit/jars/ruby.jar -S gem install -i ~/.gem/jruby/1.8 gist
require 'rubygems'
require 'gist'
def gistBufferOrSelection(view)
textarea, buffer = view.getTextArea, view.getBuffer
if textarea.getSelectionCount > 0
text = textarea.getSelectedText
else
text = textarea.getText
end
@scragz
scragz / kst-file-structure
Created January 14, 2011 00:42
KST file structure
kitchen-sink-html5-base
kitchen-sink-html5-base/LICENSE
kitchen-sink-html5-base/README
kitchen-sink-html5-base/init.php (plugin manifest, init(), sensible_defaults(), maybe some kind of loader)
# all our codey stuff
kitchen-sink-html5-base/lib
kitchen-sink-html5-base/lib/KST.php
kitchen-sink-html5-base/lib/KST
kitchen-sink-html5-base/lib/KST/Asides.php
kitchen-sink-html5-base/lib/KST/Options.php