This looks like a nice enhancement for what I consider to be missing functionality in highlight.js. Not every one agrees, but that's ok.
Is there a way your plugin could optionally generate relative line links? something like<a href="#line100">100</a>
?