There has been developed such a plugin a while ago... but I'm not sure if it is compatible anymore: https://www.question2answer.org/qa/37512
Anyway, I guess that what you actually need is just a CKEditor plugin that would allow you to highlight the code. There are many but it seems the official one would be this one and there is a tutorial here. The only Q2A-related thing that you should bare in mind is that you will have to enable the CKEditor plugin in the WYSIWYG editor. Here is a tutorial on how to do that.
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.