Code formatting and escaping output