Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Syntax Highlightning in tuiTextBox
#3
Blackbird schrieb:If i understood alright, this Callback is only for 1 Char ?
No, it is per line. See the "While" loop...

Zitat:will i highlight a command like engine or id or title and other simple commands i must use a stack parser alright ?
The "StyleCommands" are just short "instructions" to tell the text renderer how to change the colors and fonts. You can add them to a line by giving the line and character positions using _tb_SetStyleCommand.

Zitat:
Zitat:I can give an example if there is interest.

yes please...
Let me figure something out.

Zitat:and another question.
This type of Callback will also work with a Listview ?
Unfortunately no. But I plan to use the same mechanism of text formatting for all kinds of text output.
Just interface wise this is not so easy.
Zitieren


Nachrichten in diesem Thema

Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste