Forum > GTK

[SOLVED]Question about GTK2 text coloring

<< < (2/2)

tomitomy:

--- Quote from: tomitomy on January 26, 2023, 05:06:44 pm ---Hello everyone, I'm writing syntax highlighting in GTK2 and I'm having a problem, when I copy the colored text from one node to another, the text is misaligned and the console outputs:

......

I upload the source code to the attachment.

--- End quote ---

The attachment I uploaded earlier had a serious bug that caused data loss, I re-uploaded it here, the newly uploaded attachment fixed this bug(uTreeDB.pas), I tested for several months and did not encounter a new bug.

I didn't find the button to edit the old post, so I can't delete the attachment in the old post, if anyone is interested in this attachment, please re-download the new attachment here.

This project is an upgraded version of TomiNote v1.1 which I released a few years ago, and basically works (Linux only), supports syntax coloring and search result highlighting. Some features have not yet been implemented, such as custom syntax colors, internationalization support, etc., and some code has not been sorted out, which will look messy. I was going to publish it all after I had written it, but now I don't have time to finish it, so put it here in the hope that it will help others a little.

The new attachment:

Navigation

[0] Message Index

[*] Previous page

Go to full version