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/create/create.html.tmpl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'template/en/default/bug/create/create.html.tmpl') diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl index e0fdd13b9..bea4befba 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -9,13 +9,19 @@ [% title = BLOCK %]Enter [% terms.Bug %]: [% product.name FILTER html %][% END %] [% use_qa_contact = Param("useqacontact") %] +[% style_urls = ['skins/standard/bug.css'] %] +[% javascript_urls = [ "js/attachment.js", "js/util.js", "js/field.js", "js/TUI.js", "js/bug.js" ] %] + +[% 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 %] + [% PROCESS global/header.html.tmpl title = title generate_api_token = 1 yui = ['datatable', 'button'] - style_urls = ['skins/standard/bug.css'] - javascript_urls = [ "js/attachment.js", "js/util.js", - "js/field.js", "js/TUI.js", "js/bug.js" ] onload = "set_assign_to($use_qa_contact); hideElementById('attachment_true'); showElementById('attachment_false'); showElementById('btn_no_attachment');" %] -- cgit v1.2.3-24-g4f1b