Implements _formatCode