[Geany] First haxe script
blackdog
blackdog at xxxxx
Tue Jul 31 02:02:13 UTC 2007
Not much of a test but it works!
import Geany;
class Tests {
static function main(){
trace("intialising tests - this");
}
public function new() {
var doc = Geany.create("nice",null);
var intext = "woohoo\n";
doc.setText(intext);
for (i in 0...5) {
var pos = doc.getPosition();
doc.insertText(pos,"new text "+i+"\n");
pos = doc.getLength();
doc.insertText(pos,"new length is:"+pos+"\n");
}
}
}
--
http://www.blackdog-haxe.com/
"It is no measure of health to be well adjusted to a profoundly sick
society." --Jiddu Krishnamurti
More information about the Users
mailing list