mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 19:20:56 +01:00
Anchors for line numbers in blob view. Fixes #125
This commit is contained in:
@@ -13,7 +13,10 @@ $(function () {
|
|||||||
matchBrackets: true,
|
matchBrackets: true,
|
||||||
lineWrapping: true,
|
lineWrapping: true,
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
mode: mode
|
mode: mode,
|
||||||
|
lineNumberFormatter: function(ln) {
|
||||||
|
return '<a name="L'+ ln +'"></a><a href="#L'+ ln +'">'+ ln +'</a>';
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user