Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Semantic highlight

<< < (14/16) > >>

MortenMacFly:

--- Quote from: mistar on August 17, 2012, 09:04:25 pm ---How about these changes? When do you expect them to be commited?

--- End quote ---
They are in head now, with the limitations I mentioned. Tell me when thee is new stuff to test.

mistar:
Hi guys!
It's a long time since my last post ;)
Sources of not-crashing plugin attached (maybe I'll find time to make some hg repository for future;))
Play with it and tell me what you think.
BUT!
 * no config dialog so far
 * if you go to editor settings and then back, the color scheme will revert to the C::B settings
    (how to turn this off???)
 * I don't handle changes in project/build target settings and active build target changes (work in progress)
 * due to some clang issues, there could be still places not colored properly ;) (I've filed bugs for this)
 * as usual, you need libclang installed (llvm and clang svn versions work fine for me; also remember to change
    linker options!)
 * tested with C::B (rev 8836) SDK v1.15.0.
 * [EDIT:] you need gcc >=4.6 with -std=c++0x or -std=c++11, or some other compiler supporting basic C++11 ('auto' and simple lambdas)

To handle options changes I need to know
 * when project options are changed (what if I modify only build target options? Do I get cbEVT_PROJECT_OPTIONS_MODIFIED also?)
 * when active build target is changed (that is set, not modified) -- what event should I use?

Enjoy!

Alpha:

--- Quote from: mistar on February 19, 2013, 04:32:51 pm --- * no config dialog so far

--- End quote ---
I recently tested with providing semantic highlighting by hooking into the Scintilla lexer.  Pros: seamlessly integrates into the pre-existing highlighting settings.  Cons: the patch there is currently not usable (due to some sort of thread lock, I think, when you start typing).

mistar:
Great!
But... how about the new C++11 standard? My plugin inherits C++11 support from clang,
which is quite decent. And what about errors in code? As you type, there are plenty of them...
Colors is a minor issue in my plugin; but clearly I need my own color config panel
because it has to be richer (semantic highlight has a lot more styles).
I think of using color scheme extending syntactic one, but I don't know whether it is possible
to control syntactic scheme in SDK.

daniloz:
Yes, please, I want to see screenshots!  ;)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version