RSyntaxTextArea icon indicating copy to clipboard operation
RSyntaxTextArea copied to clipboard

"Error waves" under text

Open olivbrau opened this issue 1 year ago • 3 comments

Hi, Is there a standard way to show a kind of "error wave" under some portions of text in a RSyntaxTextArea ? If no, do you know how I could easy implement this feature ?

For instance, my program analyse the code and can detect some errors that cannot be detected during the tokenisation of RSyntaxTextArea (cf. it is a longer analysis in a separate thread). And I would like to add a red error wave under the portions of text that are bad.

Here is an example to show what I'm trying to do : I know that tokens can be underlined, but what I speak of is not in the same scope as token analysis. for instance the code : string toto = 123 + "aze" all 3 tokens are good and are to be shown in their correct token style, but later, the 'analyser' detect that 123 cannot be added with a string and I would like to underline easly all the text 123 + "aze", leaving everything else in the same style

Thanks in advance !

Olivier

olivbrau avatar Aug 29 '24 13:08 olivbrau