Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Create text display with syntax highlighting
QtWS25 Last Chance

Create text display with syntax highlighting

Scheduled Pinned Locked Moved Unsolved General and Desktop
helptextareasyntax highligh
2 Posts 2 Posters 298 Views
  • 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.
  • I Offline
    I Offline
    IGaming73
    wrote on last edited by
    #1

    Hello,
    I was wondering if it was possible with Qt Designer or via PyQt5 to create a text display with syntax highlighting for C++ code, so thqt the code would be easier to read for the user.
    Thanks for your answer.

    jsulmJ 1 Reply Last reply
    0
    • I IGaming73

      Hello,
      I was wondering if it was possible with Qt Designer or via PyQt5 to create a text display with syntax highlighting for C++ code, so thqt the code would be easier to read for the user.
      Thanks for your answer.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @IGaming73 See https://doc.qt.io/qt-6/qsyntaxhighlighter.html and https://doc.qt.io/qt-6/qtwidgets-richtext-syntaxhighlighter-example.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3

      • Login

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