[debug] syntax highlight SQL and RQL debug output
This prevent DBG_RQL and DBG_SQL output to looks like a gigantic blob of white
text.
Do this only if we detect that we are in a tty and that pygments is installed.
Closes #17222885
Document: cubicweb-doc
Title: CubicWeb Documentation
Author: Logilab
Abstract: Some base documentation for CubicWeb users and developers
Section: Programming
Format: HTML
Index: /usr/share/doc/python3-cubicweb-documentation/html/index.html
Files: /usr/share/doc/python3-cubicweb-documentation/html/*