build in formatText

build in formatText int game.js and editor.js