Highlight is a Blender Addon to create syntax highlighting on text objects containing any type of code.
Currently it supports 430+ languages/language subsets.
Download the zip file from github for free or from the Gumroad link (If you want to support me) and you can install like any other Blender Addon
Supports Blender 2.81
Select the text object having the code content.
Select the language you want to format in.
And Click on Highlight. It will syntax highlight and create materials for each of the token types.
Each time you click on highlight it will generate a different color pallette, therefore the possibilities are endless.
And you can even modify the materials that are created to suit your own needs.