How to convert code into beautiful screenshot