replace _formatCode with a _tagReplace call