]> git.koha-community.org Git - koha.git/commit
Bug 27643: Add CodeMirror custom syntax highlighting for SQL runtime parameters
authorOwen Leonard <oleonard@myacpl.org>
Fri, 5 Feb 2021 18:14:55 +0000 (18:14 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 8 Feb 2021 16:09:34 +0000 (17:09 +0100)
commit58cc70a0cbc5721cdac79954faedf90c4214996c
tree9d3b64e26ca4c3e758c7824f66264c21356df8bf
parentfecb9a11fc44f9d1c8bb9be37ad532c7b2ad710a
Bug 27643: Add CodeMirror custom syntax highlighting for SQL runtime parameters

This patch adds some additional configuration to CodeMirror so that
runtime parameters have a distinct color in the CodeMirror SQL editor.

To test, apply the patch and create or edit an SQL report which contains
one or more runtime parameters, e.g. <<branches>>, <<categorycode>>,
etc.

Confirm that when editing the SQL, these parameters should appear as
green text. Save your report and view it. The syntax highlighting should
be updated in this view too.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/lib/codemirror/overlay.js [new file with mode: 0644]
koha-tmpl/intranet-tmpl/lib/codemirror/overlay.min.js [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt