Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: earlgrey on September 07, 2014, 08:08:50 pm
-
I have made a patch ( scintilla lexer + C::B modifs ) that enable coloring GNU as within C::B ( you have to recompile C::B ).
For those who use gcc and want to see what it does. ( I find it very good in optimizations )
Check out here : http://lxfsw.blogspot.fr/p/page-02.html (http://lxfsw.blogspot.fr/p/page-02.html)
-
Unfortunately, as soon as I posted, the patch stopped to work with a "no extension handler could be found".
So, use of this patch is discouraged until I find the bug.
Something wrong with C::B integration, because I still have my modified Scite version working.
Sorry for the inconvenience.
-
Please post this patch to the scintilla project if this lexer is available there...
And posting patches in an archive is not very suitable, so there is very little chance they can be integrated in the project.
See this http://wiki.codeblocks.org/index.php?title=Creating_a_patch_to_submit_to_BerliOS_%28Patch_Tracker%29 for details (it is a bit outdated).
-
The next step for me was to propose the lexer to scintilla/scite, but I want to debug the C::B patch before.
>> Edit : Problem is due to 2 simultaneous versions of C::B, one in /usr and one in /usr/local ; seems that a simple ldconfig solve it, so I keep the links in my page for those who are interested.
Anyway, thanks for the answer.
-
Neil Hodgson, from Scintilla/Scite, is ok for integrating the lexer.( Im currently working on getting rid of some warnings ).
I forgot to mention the lexer supports code folding.
Regards -
-
Great to hear... we'll have it in c::b after it has been release in an official release of scintilla.
-
Thats why I wanted to give a patch, because it may be a (relatively ) long process.
-
If you've posted a patch to us it could have been quite a lot longer:)
Now it will just happen with the next scintilla release...
-
Received from Neil Hodgson : "The value of SCLEX_GAS will be 117 as the BibTeX lexer took 116."
It is on the rails !