var ml = String.buffer("--", this.isModified(), "- <b>",
this.name.htmlEscape(), "</b> (", rc.row + 1, ",", rc.col, ")--",
this.modeStr(), "--");
Now just need to find out how many lines are in a buffer.
thanks,
-joe
Cheers,
-M.
> --
> www.ymacs.com - AJAX code editor
--
Mihai Bazon,
http://mihai.bazon.net/blog
Thanks!
Now have "percentage" in the modeline:
P.percentBuf = function() {
var percent = parseInt(((this._rowcol.row+1)/this.code.length)*100);
return "(" + percent + "%)";
}
/*... */
var ml = String.buffer("--", this.isModified(), "- <b>",
this.name.htmlEscape(), "</b> (", rc.row + 1, ",", rc.col,
")--",this.percentBuf(), "--", this.modeStr(), "--");
-joe