Could you use [lang.stringRepeat("x", 100)](https://github.com/ajaxorg/ace/blob/master/lib/ace/lib/lang.js#L38) for this