Is it possible to have the total number of lines of a sourcecode using SyntaxHighlighter (http://alexgorbatchev.com/SyntaxHighlighter/) please ?
I could use the technique defined here : How to get the number of lines in a textarea? But perhaps SyntaxHighlighter can do it more easily.
Thank you.
I don't believe there's a built-in solution, but here's a function that should do the trick. It uses the
getElementsByClassName
method so I don't think it works on IE8 or below. Use your favorite DOM query library if you wish.jQuery version, because apparently that's a thing.