Format code in Navigator