Does the ace editor provide an option for the wrap mode which takes the indentation into consideration?
Like This:
Currently wrap: true produces this:
wrap: true
This feature was added recently in https://github.com/ajaxorg/ace/pull/2187