From 55319a84da6d5030a7101954e2e4fed6359e73fd Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Thu, 22 Dec 2022 19:33:03 +0530 Subject: [PATCH] Pretty print everything Signed-off-by: baalajimaestro --- static/scripts.js | 8 +++--- static/styles.css | 22 ++++++++-------- tailwind.config.js | 4 +-- templates/paste.html | 61 ++++++++++++++++++++++---------------------- 4 files changed, 48 insertions(+), 47 deletions(-) diff --git a/static/scripts.js b/static/scripts.js index de068cb..cf53f6a 100644 --- a/static/scripts.js +++ b/static/scripts.js @@ -1,4 +1,4 @@ -document.addEventListener('DOMContentLoaded', (event) => { - const elem = document.getElementById('pastecontent'); - hljs.highlightElement(elem); - }); +document.addEventListener("DOMContentLoaded", (event) => { + const elem = document.getElementById("pastecontent"); + hljs.highlightElement(elem); +}); diff --git a/static/styles.css b/static/styles.css index aa31225..4e01f3d 100644 --- a/static/styles.css +++ b/static/styles.css @@ -1,20 +1,20 @@ -@import url('https://fonts.googleapis.com/css?family=IBM Plex Sans'); -@import url('https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/styles/atom-one-dark.min.css'); -@import url('https://cdnjs.cloudflare.com/ajax/libs/hack-font/3.3.0/web/hack.css'); +@import url("https://fonts.googleapis.com/css?family=IBM Plex Sans"); +@import url("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/styles/atom-one-dark.min.css"); +@import url("https://cdnjs.cloudflare.com/ajax/libs/hack-font/3.3.0/web/hack.css"); body { - font-family: 'IBM Plex Sans'; + font-family: "IBM Plex Sans"; } pre { - overflow-x: auto; - white-space: pre-wrap; - white-space: -moz-pre-wrap; - white-space: -pre-wrap; - white-space: -o-pre-wrap; - word-wrap: break-word; + overflow-x: auto; + white-space: pre-wrap; + white-space: -moz-pre-wrap; + white-space: -pre-wrap; + white-space: -o-pre-wrap; + word-wrap: break-word; } .hljs { - font-family: 'Hack' !important; + font-family: "Hack" !important; } diff --git a/tailwind.config.js b/tailwind.config.js index 9315306..3bfb391 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,8 +1,8 @@ /** @type {import('tailwindcss').Config} */ module.exports = { - content: ["./static/*.{js,css}","./templates/*.html"], + content: ["./static/*.{js,css}", "./templates/*.html"], theme: { extend: {}, }, plugins: [], -} +}; diff --git a/templates/paste.html b/templates/paste.html index c4eff56..907e39e 100644 --- a/templates/paste.html +++ b/templates/paste.html @@ -1,38 +1,39 @@ - + - - - - - - - - -
-

Obsolute Paste

+ + + + + + + + + +
+

Obsolute Paste

{% block content %}
 {{paste_content}} 
{% endblock content %} -
-
-
-
-
+
+
+
+
+
©2022 Maestro Creativescape.
- - + + \ No newline at end of file