Added EmitFmt which uses local variables in the calling frame to auto-format code replacements.