1
0
mirror of https://github.com/lus/pasty.git synced 2023-08-10 21:13:09 +03:00

Implement S3 storage driver

This commit is contained in:
Lukas SP
2020-08-23 23:44:47 +02:00
parent 8317fef5f7
commit 5149434cff
9 changed files with 175 additions and 24 deletions

View File

@@ -24,8 +24,8 @@ function loadPaste() {
// Set the paste content to the DOM and display the line numbers
document.getElementById("code").innerHTML = language
? hljs.highlight(language, data.content).value.replace("\n", "<br />")
: hljs.highlightAuto(data.content).value.replace("\n", "<br />");
? hljs.highlight(language, data.content).value
: hljs.highlightAuto(data.content).value;
for (i = 1; i <= data.content.split(/\n/).length; i++) {
document.getElementById("linenos").innerHTML += "<span>" + i + "</span>";
}