Format code in sidebar