Counting number of lines

1,419 views
Skip to first unread message

Jared T

unread,
Dec 2, 2011, 4:58:33 AM12/2/11
to Ajax.org Cloud9 Editor (Ace)
Is there a way to get the number of lines? I noticed in the DOM, Ace
only stores up to 17 divs, so I can't count each .ace_line and get the
total number of lines that way.

Thanks,
JT

Zef Hemel

unread,
Dec 2, 2011, 7:56:49 AM12/2/11
to ace-d...@googlegroups.com
editor.session.getLength() should do the trick.

-- Zef

> --
> You received this message because you are subscribed to the Google Groups "Ajax.org Cloud9 Editor (Ace)" group.
> To post to this group, send email to ace-d...@googlegroups.com.
> To unsubscribe from this group, send email to ace-discuss...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/ace-discuss?hl=en.
>

--
Zef Hemel
http://zef.me
http://twitter.com/zef

Reply all
Reply to author
Forward
0 new messages