cubicweb #17222885 syntax highlight for SQL and RQL debug output [resolved]

Simply use pygments, when it's installed, to display syntax highlight for DBG_SQL and DBG_RQL output.

This also check if we are in a tty and only use colors in that situation (disable it when writing to a file for example).

Patch has been sent to the ml.

prioritynormal
typeenhancement
done in3.27.0
load left0.000
closed by#c6f8ca03718f [debug] syntax highlight SQL and RQL debug output
assigned to