From 3f75ddd65da6a5753fa90b429ed6f43b4eeae088 Mon Sep 17 00:00:00 2001 From: Albert Ting Date: Wed, 6 Jul 2016 16:47:46 -0400 Subject: Bug 1203960 - Add syntax highlighting to markdown r=dylan Initial implementation by Koosha KM --- template/en/default/bug/show-header.html.tmpl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'template/en/default/bug/show-header.html.tmpl') diff --git a/template/en/default/bug/show-header.html.tmpl b/template/en/default/bug/show-header.html.tmpl index 0aaaf91e3..bce881420 100644 --- a/template/en/default/bug/show-header.html.tmpl +++ b/template/en/default/bug/show-header.html.tmpl @@ -70,6 +70,12 @@ "bz_component_$bug.component", "bz_bug_$bug.bug_id", ] %] +[% markdown_enabled = feature_enabled('jsonrpc') AND user.settings.use_markdown.value == "on" %] +[% IF markdown_enabled %] + [% javascript_urls.push("js/highlight.js/highlight.pack.js") %] + [% style_urls.push("js/highlight.js/styles/github.css") %] +[% END %] + [% FOREACH group = bug.groups_in %] [% bodyclasses.push("bz_group_$group.name") %] [% END %] -- cgit v1.2.3-24-g4f1b