Adding automate method text to Code Mirror