In ace editor if the text is too long, a horizontal scroll bar is appearing, is there an option in ace editor, if text is too long it automatically breaks in multiple lines.
In ace editor if the text is too long, a horizontal scroll bar is appearing, is there an option in ace editor, if text is too long it automatically breaks in multiple lines.
Yes, use wrap: true option.
<script src=https://ajaxorg.github.io/ace-builds/src/ace.js></script>
<div id=editor style="height:90vh"></div>
<script>
editor = ace.edit("editor", {
wrap: true,
value: "very long line ".repeat(120)
})
</script>