How to display c++ c java c# code as code in textbox with a proper indent of coding

Please don’t create 2 topics about the same thing here: