Hi,
I have upgraded my working copy of Geany to use Scintilla 2.25. Attached are patches of the upgrade[1] (*massive patch*) and the application of my Scintilla patches[2] which were later merged upstream.
IIRC part of the scintilla_changes.patch didn't work (the Catalogue.cxx part), so I hand edited it.
So far the upgrade is smooth...
[1] https://github.com/codebrainz/geany/commit/8cb68e93b0cb5b56d8327d073ad665ddf... [2] https://github.com/codebrainz/geany/commit/35023b448a9b76fbf8422d8c5a9a417ef...
Cheers, Matthew Brush
Matthew (or anybody),
I want to piggyback my question onto this thread, as I suspect you'll know the answer. If I create a new lexer for Scintilla, and then compile Scintilla, what must I do to get that new lexer (and new Scintilla) to work with Geany?
I tried to look into this a little bit once (at the time as almost a total newbie to C/C++) (about 18 months ago). I vaguely recall that Geany needs something other (or in addition to) the <lexer>.properties file which SciTE needs to make use of a new lexer. (As well, Scintilla and SciTE need some changes to various files other than the new lexer file to make a lexer take effect.)
Is there something about the requirements or procedure to get a new lexer / new Scintilla to work with Geany?
Thanks, Randy Kramer
On Saturday 02 April 2011 10:36:49 pm Matthew Brush wrote:
I have upgraded my working copy of Geany to use Scintilla 2.25. Attached are patches of the upgrade[1] (*massive patch*) and the application of my Scintilla patches[2] which were later merged upstream.
Le 03/04/2011 13:14, Randy Kramer a écrit :
Matthew (or anybody),
I want to piggyback my question onto this thread, as I suspect you'll know the answer. If I create a new lexer for Scintilla, and then compile Scintilla, what must I do to get that new lexer (and new Scintilla) to work with Geany?
[...]
Is there something about the requirements or procedure to get a new lexer / new Scintilla to work with Geany?
Maybe take a look at a commit that added such things, e.g. a new filetype: http://git.geany.org/geany/commit/?id=f94c2265c25a000b09b4adce335ce9f7499959...
This one is pretty complete (highlighter, tag extractor, etc.) so should answer your questions :)
Cheers, Colomban
On 3 April 2011 22:30, Colomban Wendling lists.ban@herbesfolles.org wrote:
Le 03/04/2011 13:14, Randy Kramer a écrit :
Matthew (or anybody),
I want to piggyback my question onto this thread, as I suspect you'll know the answer. If I create a new lexer for Scintilla, and then compile Scintilla, what must I do to get that new lexer (and new Scintilla) to work with Geany?
[...]
Is there something about the requirements or procedure to get a new lexer / new Scintilla to work with Geany?
Maybe take a look at a commit that added such things, e.g. a new filetype: http://git.geany.org/geany/commit/?id=f94c2265c25a000b09b4adce335ce9f7499959...
This one is pretty complete (highlighter, tag extractor, etc.) so should answer your questions :)
And don't forget to RTFM, or at least the Hacking file :-)
Cheers Lex
Cheers, Colomban _______________________________________________ Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Le 03/04/2011 14:34, Lex Trotman a écrit :
On 3 April 2011 22:30, Colomban Wendlinglists.ban@herbesfolles.org wrote:
Le 03/04/2011 13:14, Randy Kramer a écrit :
Matthew (or anybody),
I want to piggyback my question onto this thread, as I suspect you'll know the answer. If I create a new lexer for Scintilla, and then compile Scintilla, what must I do to get that new lexer (and new Scintilla) to work with Geany?
[...]
Is there something about the requirements or procedure to get a new lexer / new Scintilla to work with Geany?
Maybe take a look at a commit that added such things, e.g. a new filetype: http://git.geany.org/geany/commit/?id=f94c2265c25a000b09b4adce335ce9f7499959...
This one is pretty complete (highlighter, tag extractor, etc.) so should answer your questions :)
And don't forget to RTFM, or at least the Hacking file :-)
Hum true, it actually contains all the necessary information :)
On 04/03/11 05:41, Colomban Wendling wrote:
Le 03/04/2011 14:34, Lex Trotman a écrit :
On 3 April 2011 22:30, Colomban Wendlinglists.ban@herbesfolles.org wrote:
Le 03/04/2011 13:14, Randy Kramer a écrit :
Matthew (or anybody),
I want to piggyback my question onto this thread, as I suspect you'll know the answer. If I create a new lexer for Scintilla, and then compile Scintilla, what must I do to get that new lexer (and new Scintilla) to work with Geany?
[...]
Is there something about the requirements or procedure to get a new lexer / new Scintilla to work with Geany?
Maybe take a look at a commit that added such things, e.g. a new filetype: http://git.geany.org/geany/commit/?id=f94c2265c25a000b09b4adce335ce9f7499959...
This one is pretty complete (highlighter, tag extractor, etc.) so should answer your questions :)
And don't forget to RTFM, or at least the Hacking file :-)
Hum true, it actually contains all the necessary information :)
Not everything, scintilla_changes.patch[1] also needs to updated, which isn't in the above commit or HACKING.
Then some n00b comes along and upgrades his Scintilla to 2.25 and leaves out supported lexers[2] :)
[1] http://git.geany.org/geany/tree/scintilla/scintilla_changes.patch?id=f94c226... [2] https://github.com/codebrainz/geany/commit/8cb68e93b0cb5b56d8327d073ad665ddf...
Cheers, Matthew Brush
On Sun, 03 Apr 2011 05:55:45 -0700, Matthew wrote:
On 04/03/11 05:41, Colomban Wendling wrote:
Le 03/04/2011 14:34, Lex Trotman a écrit :
On 3 April 2011 22:30, Colomban Wendlinglists.ban@herbesfolles.org wrote:
Le 03/04/2011 13:14, Randy Kramer a écrit :
Matthew (or anybody),
I want to piggyback my question onto this thread, as I suspect you'll know the answer. If I create a new lexer for Scintilla, and then compile Scintilla, what must I do to get that new lexer (and new Scintilla) to work with Geany?
[...]
Is there something about the requirements or procedure to get a new lexer / new Scintilla to work with Geany?
Maybe take a look at a commit that added such things, e.g. a new filetype: http://git.geany.org/geany/commit/?id=f94c2265c25a000b09b4adce335ce9f7499959...
This one is pretty complete (highlighter, tag extractor, etc.) so should answer your questions :)
And don't forget to RTFM, or at least the Hacking file :-)
Hum true, it actually contains all the necessary information :)
Not everything, scintilla_changes.patch[1] also needs to updated, which isn't in the above commit or HACKING.
I don't think we ever expected anyone manually updates the Scintilla copy inside Geany. Weird that you have done but ok. I'd use your patch or update the copy directly, whatever will be easier for me, soon. Thanks so far.
And after updating, I'll refresh also the scintilla_changes.patch, no worries.
Regards, Enrico
On 04/03/11 06:01, Enrico Tröger wrote:
I'd use your patch or update the copy directly, whatever will be easier for me, soon. Thanks so far.
Probably just as easy for you to manually update it since you know more of this. I just wanted to try myself, because there is a new feature I wanted to look at.
And after updating, I'll refresh also the scintilla_changes.patch, no worries.
No big deal, I just blindly assumed I needed to apply this to make the stock Scintilla good for Geany.
Cheers, Matthew Brush
Matthew,
Thanks very much!
Randy Kramer
On Sunday 03 April 2011 08:55:45 am Matthew Brush wrote:
Not everything, scintilla_changes.patch[1] also needs to updated, which isn't in the above commit or HACKING.
Then some n00b comes along and upgrades his Scintilla to 2.25 and leaves out supported lexers[2] :)
[1] http://git.geany.org/geany/tree/scintilla/scintilla_changes.patch?id= f94c2265c25a000b09b4adce335ce9f74999594c#n54 [2] https://github.com/codebrainz/geany/commit/8cb68e93b0cb5b56d8327d073a d665ddf8fec44f#L49L89
Colomban,
Thanks very much!
Randy Kramer
On Sunday 03 April 2011 08:30:55 am Colomban Wendling wrote:
Maybe take a look at a commit that added such things, e.g. a new filetype: http://git.geany.org/geany/commit/?id=f94c2265c25a000b09b4adce335ce9f 74999594c
This one is pretty complete (highlighter, tag extractor, etc.) so should answer your questions :)