Skip to content

Commit 84da4e3

Browse files
committed
allow highlighting multiple lines
1 parent 404127d commit 84da4e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

root/static/js/syntaxhighlighter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ $(function () {
6565
if (source.html().length > 500000) {
6666
source.children('code').removeClass();
6767
}
68-
else if ( lineMatch = document.location.hash.match(/^#L(\d+)$/) ) {
68+
else if ( lineMatch = document.location.hash.match(/^#L(\d+(-\d+)?(,\d+(-\d+)?)*)$/) ) {
6969
source.attr('data-line', lineMatch[1]);
7070
}
7171
// check for 'P{encoded_package_name}' anchor, convert to

0 commit comments

Comments
 (0)