To highlight languages inside the docbook, the easiest would be to implement support for highlight.js https://highlightjs.org/usage/