you cant convert it to GUI, because Jass is typed and the editor is not smart enough to find out what those functions should be in GUI, mainly because GUI uses Jass2 while text can be Jass
also GUI generates code differently then people write it so no unfortunarilly there is no way to convert GUI to Jass, at least not what I know of