Anchors for line numbers in blob view. Fixes #125

This commit is contained in:
Klaus Silveira
2012-08-16 02:00:12 -03:00
parent 1de23ff4e9
commit d1b628049f

View File

@@ -13,7 +13,10 @@ $(function () {
matchBrackets: true,
lineWrapping: true,
readOnly: true,
mode: mode
mode: mode,
lineNumberFormatter: function(ln) {
return '<a name="L'+ ln +'"></a><a href="#L'+ ln +'">'+ ln +'</a>';
}
});
}