changeset 8:5565551314e9

Highlight for backquoted word
author Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
date Tue, 26 Jul 2016 17:02:40 +0900
parents 9fdaeaa8ba68
children 57f061e7d0c7
files scripts/prettify.css slides.html.erb
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/prettify.css	Tue Dec 22 16:21:41 2015 +0900
+++ b/scripts/prettify.css	Tue Jul 26 17:02:40 2016 +0900
@@ -1,6 +1,12 @@
 /* CSS from google html5slides(https://code.google.com/p/html5slides/) */
 
+code {
+  display: inline-block;
+}
+
 pre > code {
+  display: block;
+
   font-family: 'Droid Sans Mono', 'Courier New', monospace;
 
   font-size: 20px;
--- a/slides.html.erb	Tue Dec 22 16:21:41 2015 +0900
+++ b/slides.html.erb	Tue Jul 26 17:02:40 2016 +0900
@@ -32,7 +32,6 @@
     $('code').each(function(_, el) {
       if (!el.classList.contains('noprettyprint')) {
         el.classList.add('prettyprint');
-        el.style.display = 'block';
       }
     });
     prettyPrint();