Hi!
I am writing a small plugin that will integrate pyflakes into Geany. I have managed to spawn pyflakes process and retrieve information from pyflakes and now I have to use it to decorate some text in code or maybe add some icons to the line numbers bar on the left. I took a look at GeanyDocument and GeanyEditor, but I don't see any functions that could be used for that. Could you advise me a little, what should I use?
2011/8/4 Filip Gruszczyński gruszczy@gmail.com:
Hi!
I am writing a small plugin that will integrate pyflakes into Geany. I have managed to spawn pyflakes process and retrieve information from pyflakes and now I have to use it to decorate some text in code or maybe add some icons to the line numbers bar on the left. I took a look at GeanyDocument and GeanyEditor, but I don't see any functions that could be used for that. Could you advise me a little, what should I use?
You will have to communicate with Scintilla, see the wrapper functions in the plugin interface.
Cheers Lex
-- Filip Gruszczyński _______________________________________________ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Am 03.08.2011 23:26, schrieb Filip Gruszczyński:
Hi!
I am writing a small plugin that will integrate pyflakes into Geany. I have managed to spawn pyflakes process and retrieve information from pyflakes and now I have to use it to decorate some text in code or maybe add some icons to the line numbers bar on the left. I took a look at GeanyDocument and GeanyEditor, but I don't see any functions that could be used for that. Could you advise me a little, what should I use?
Maybe you can have a look at sci_set_marker_at_line() at http://www.geany.org/manual/reference/sciwrappers_8h.html
Cheers, Frank
Ok, thanks a lot for help :-)
I have managed to put information right now into a list like used for Tasks in Addons. Now I will try to communicate to scintilla :-)
So I managed to use sci_set_marker_at_line, but when I try to use some markers, I can either get the markers for code folding, a green plus, a yellow arrow and all other options are white circle.
I have read http://www.scintilla.org/ScintillaDoc.html#Markers and tried to use
SCI_MARKERDEFINE(int markerNumber, int markerSymbols)
but it says tak SCI_MARKERDEFINE cannot be called (because it turns out to be 2040). Could you help me a little and tell me, how to set those markers properly?
If I manage to do this, then I only need to understand how Addons provide jumping to code and I guess the plugin will be ready to go. Anyway it provides now information about lines with error quite fine.
I have read http://www.scintilla.org/ScintillaDoc.html#Markers and tried to use
SCI_MARKERDEFINE(int markerNumber, int markerSymbols)
By the way I used also macros like SC_MARK_ARROW, but I still get a white circle.
I suggest having a look at how the debug plugin does it, it uses several different markers.
Cheers Lex
2011/8/5 Filip Gruszczyński gruszczy@gmail.com:
I have read http://www.scintilla.org/ScintillaDoc.html#Markers and tried to use
SCI_MARKERDEFINE(int markerNumber, int markerSymbols)
By the way I used also macros like SC_MARK_ARROW, but I still get a white circle.
-- Filip Gruszczyński _______________________________________________ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
I suggest having a look at how the debug plugin does it, it uses several different markers.
Ha! That was exactly what I needed. An example of how it all works. Now I understand, that I need to set those markers first and only then I can use them. Great thanks. Now I have cool, short arrows in two different colors :-)