summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-31 04:49:54 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-31 04:49:54 (EDT)
commit5ce1dbc18e02652a5f0cb186f1047c758e1ec7f3 (patch)
treef737f4ddf2c601201531c9096ce739ff070ebd0e /src
parentcf7adf17813fa01be259d0cfd08432c7c83186e7 (diff)
downloadmarquee-5ce1dbc18e02652a5f0cb186f1047c758e1ec7f3.zip
marquee-5ce1dbc18e02652a5f0cb186f1047c758e1ec7f3.tar.gz
marquee-5ce1dbc18e02652a5f0cb186f1047c758e1ec7f3.tar.bz2
view-source: Use Prism
Diffstat (limited to 'src')
-rw-r--r--src/view-source.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/view-source.c b/src/view-source.c
index 45ce8e9..7a716e2 100644
--- a/src/view-source.c
+++ b/src/view-source.c
@@ -42,10 +42,18 @@ static const gchar *document =
"<head>\n"
"<meta charset=\"utf-8\">\n"
"<title>Source of %s</title>\n"
+ "<link rel=\"stylesheet\" type=\"text/css\" "
+ "media=\"all\" "
+ "href=\"view-source:resources/prism/"
+ "prism.css\">\n"
+ "<script src=\"view-source:resources/prism/"
+ "prism.js\"></script>\n"
"</head>\n"
"<body>\n"
- "<pre>\n"
- "<code>%s</code>\n"
+ "<pre style=\"overflow: visible;\">\n"
+ "<code class=\"language-markup line-numbers\" "
+ "style=\"overflow: visible;\">"
+ "%s</code>\n"
"</pre>\n"
"</body>\n"
"</html>\n";