From 9f8541ef2a9dc670ca75fb452c0930e1afa4a8f6 Mon Sep 17 00:00:00 2001 From: Maryana Rozhankivska Date: Tue, 22 Jul 2014 20:17:15 +0300 Subject: highlight.js library added to highlight programming code examples in article view --- themes/baggy/css/main.css | 8 ++++++++ themes/baggy/view.twig | 1 + 2 files changed, 9 insertions(+) (limited to 'themes/baggy') diff --git a/themes/baggy/css/main.css b/themes/baggy/css/main.css index 6d320cd2..f8238744 100755 --- a/themes/baggy/css/main.css +++ b/themes/baggy/css/main.css @@ -923,6 +923,13 @@ blockquote { text-decoration: underline; } +pre code { + font-family: "Courier New", Courier, monospace; + border: 1px solid #ccc; + font-size: 0.96em; +} + + /* ========================================================================== 6 = Media Queries ========================================================================== */ @@ -1055,3 +1062,4 @@ blockquote { left: 0; } } + diff --git a/themes/baggy/view.twig b/themes/baggy/view.twig index af97407d..703ce5be 100755 --- a/themes/baggy/view.twig +++ b/themes/baggy/view.twig @@ -4,6 +4,7 @@ {% endblock %} {% block title %}{{ entry.title|raw }} ({{ entry.url | e | getDomain }}){% endblock %} {% block content %} + {% include '_highlight.twig' %}