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. The words to color different QPlainTextEdit
QtWS25 Last Chance

The words to color different QPlainTextEdit

Scheduled Pinned Locked Moved Unsolved General and Desktop
qplaintexteditqtextcurqtextdo
2 Posts 2 Posters 2.0k 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.
  • T Offline
    T Offline
    tako
    wrote on last edited by
    #1

    Hi guys . I am making code editor. How I colorize some words.

    Example :

    • void = green
    • int= gray
    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome
      You can use html with QTExtEdit
      http://stackoverflow.com/questions/2857864/qtextedit-with-different-text-colors-qt-c
      but its huge work to make code editor.
      Maybe consider use a premade component ?
      Scintilla is used in many projects.
      https://www.riverbankcomputing.com/software/qscintilla/intro
      https://www.riverbankcomputing.com/software/qscintilla/download

      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