pre to code