Not tested but pretty straightforward
https://github.com/geany/geany-plugins/pull/368
—Reply to this email directly or view it on GitHub.