Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Auto-indent on wordwrapped lines in TextEdit?
Forum Updated to NodeBB v4.3 + New Features

Auto-indent on wordwrapped lines in TextEdit?

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 887 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    qttester5
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved