XSTC final version released

Do you like to promote your wxWidgets based application or component!? Post it here and let's see what the critics have to say. Also, if you found that ONE wx component the world needs to know about, put it here for future reference.
Post Reply
datatab1
Earned a small fee
Earned a small fee
Posts: 13
Joined: Mon Mar 20, 2006 6:37 am
Contact:

XSTC final version released

Post by datatab1 » Thu Dec 28, 2006 10:59 pm

http://wxcode.sourceforge.net/components/xstc/

There is the link to the wxcode site. it is the best place i could figure to put it since i don't figure it deems its own project space. it is just a library/wrapper for wxStyledTextCtrl and wxScintilla.

i used a macro to make all of the #defines work for either and if you use them then your code will work on both as well. some of the functionality that was added in the 2.7.x version of wxSTC is dealt with using a macro to find if the minor version of wxw is greater than 6. the sample was built on 2.8.0. (in the download section)

also i defined a few macros for some functions whos names change between versions. all of the macro definitions are set up in the top of the header file. the only thing you need to do is tell XSTC which library you are using. define XCLASS 0 or 1 depending. unfortunately i cannot think of a good way to check wxSCI version like i did in wxSTC so you might need to comment out one definition line in the header. (look at the website)


now, what the heck does it do? it trys to auto-detect the language that a source file is and sets up the lexer and colors for you on the fly. it is also configurable for: extension to lexer, properties for the lexer, all language colors and all of the other scintilla colors, the internal settings of the library like the mass color settings that are the defaults for all the languages.

i used doxygen for the documentation, first time i have used it and i have not reviewed the output too much, but i have been very impressed with what it does so i decided to use it. and of course if all else fails, check the source code too.

Enjoy :wink:

Post Reply