⚠️ Forum Maintenance: Feb 6th, 8am - 14pm (UTC+2)

Auto-indent on wordwrapped lines in TextEdit?

  • I'm trying to build a simple JS code editor in QML so I can offer my app some runtime scripting that takes advantage of the embedded JS engine in Qt 5+.

    I am wondering how any of you might solve these issues relating to a code editor:

    • When wrapping lines, have them automatically indent to the next indent level after the indent level of the line where the wrapping started
    • Code auto-completion
    • Syntax highlighting

    The second two are just icing on the cake but not necessary at the moment (though would be cool). I had seen someone post in a much older forum post about accomplishing syntax highlighting, but they did not respond for any further information about how it was done.

    If anyone can offer some points on how to achieve this?

Log in to reply