Bug 27747: Add CodeMirror custom syntax highlighting for column placeholders
authorOwen Leonard <oleonard@myacpl.org>
Mon, 22 Feb 2021 12:36:08 +0000 (12:36 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 26 Jul 2021 10:46:32 +0000 (12:46 +0200)
commit3c8be8bf7a945d6901b277f8bea19b9347337f2f
tree0f45570818519b911ef177d12449ca9758e13847
parent601a969915dd133312d6d89e96b880a3ecaf5e76
Bug 27747: Add CodeMirror custom syntax highlighting for column placeholders

This patch adds some additional configuration to CodeMirror so that
column placeholders 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 column placeholders, e.g. [[itemnumber|Item number]],
[[borrowernumber|Borrower number]], etc.

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

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt