I''m posting this for a friend who is having trouble with this and here is his message. "Heya! I''m working on a script editor application, but it''s missing one key feature: Syntax highlighting. Seeing this, I looked around in the sample directory and came across scintilla.rb. I attempted a run, however Ruby reported Wxruby2::Scintilla as an uninitialized constant! So now, I''m wondering what happened to the class. Is there an external file workaround for this, or will I have to set_style many times in a TextCtrl object?" _________________________________________________________________ Like the way Microsoft Office Outlook works? You’ll love Windows Live Hotmail. http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_outlook_0507 --===============1293332460=Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users --===============1293332460==--
Brandon, Scintilla is an optional component that has to be turned on when the WxRuby library is compiled. I do not think it is being compiled into any of the recent releases, I can tell you for a fact that it is not compiled into the OS X Intel and Windows build because I compiled those. As for the OS X PPC and Linux you will have to ask Alex. Your friend may want to build his own version using the instructions at the wiki: (see section Building and installing from source) http://wxruby.rubyforge.org/wiki/wiki.pl?Installation (see section How to make a wxRuby binary gem on linking in scintilla during build process) http://wxruby.rubyforge.org/wiki/wiki.pl?Release_HowTo I hope that is helpful for him Sean On 5/21/07, Brandon W. <tricksterguy at hotmail.com> wrote:> I''m posting this for a friend who is having trouble with this and here is > his message. > > "Heya! I''m working on a script editor application, but it''s missing one key > feature: Syntax highlighting. Seeing this, I looked around in the sample > directory and came across scintilla.rb. I attempted a run, however Ruby > reported Wxruby2::Scintilla as an uninitialized constant! > So now, I''m wondering what happened to the class. Is there an external file > workaround for this, or will I have to set_style many times in a TextCtrl > object?" > > _________________________________________________________________ > Like the way Microsoft Office Outlook works? You''ll love Windows Live > Hotmail. > http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_outlook_0507 > > > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users >
Sean Long wrote:> Brandon, > > Scintilla is an optional component that has to be turned on when the > WxRuby library is compiled. I do not think it is being compiled into > any of the recent releases, I can tell you for a fact that it is not > compiled into the OS X Intel and Windows build because I compiled > those. As for the OS X PPC and Linux you will have to ask Alex. >No they don''t either. It has been down to the hassle of compiling them because wxRuby was targetting an extra download.> Your friend may want to build his own version using the instructions > at the wiki: > (see section Building and installing from source) > http://wxruby.rubyforge.org/wiki/wiki.pl?Installation >Now we''ve upgraded to wxWidgets 2.8.3 there''s a much more recent and better maintained version of Scintilla shipped with the wxWidgets to build against. When building wxWidgets you can do cd contrib/src/stc make sudo make install There''s also SWIG code in wxRuby to make Wx::Scintilla work but it would need a little tweaking to make it work with the 2.8.3 wxWidgets - tweaking build params etc. I don''t have time to look into right away but ultimately I''d like to make Wx::Scintilla a core class. alex
Alex Fenton wrote:> Sean Long wrote: > >> Brandon, >> >> Scintilla is an optional component that has to be turned on when the >> WxRuby library is compiled. I do not think it is being compiled into >> any of the recent releases, I can tell you for a fact that it is not >> compiled into the OS X Intel and Windows build because I compiled >> those. As for the OS X PPC and Linux you will have to ask Alex. >> >> > No they don''t either. It has been down to the hassle of compiling them > because wxRuby was targetting an extra download. > >> Your friend may want to build his own version using the instructions >> at the wiki: >> (see section Building and installing from source) >> http://wxruby.rubyforge.org/wiki/wiki.pl?Installation >> >> > Now we''ve upgraded to wxWidgets 2.8.3 there''s a much more recent and > better maintained version of Scintilla shipped with the wxWidgets to > build against. > > When building wxWidgets you can do > > cd contrib/src/stc > make > sudo make install > > There''s also SWIG code in wxRuby to make Wx::Scintilla work but it would > need a little tweaking to make it work with the 2.8.3 wxWidgets - > tweaking build params etc. > > I don''t have time to look into right away but ultimately I''d like to > make Wx::Scintilla a core class. > > alex >Hey Alex, Just kinda curious about this, not really a big deal per say, but has any idea been thought about, setting up the ability to choose which extensions to include for wxRuby2, and kinda make it modular? Example being, having the Core GUI Controls in the main wxRuby2.so file, then wxSocket, wxHTML, wxScintilla, etc, etc, being compiled into separate extensions so that way, the programmer can decide on which controls to include, and which not to? Just thought I''d ask, see what ya think. Mario -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20070522/939eedba/attachment.html
Mario Steele wrote:> Just kinda curious about this, not really a big deal per say, but has > any idea been thought about, setting up the ability to choose which > extensions to include for wxRuby2, and kinda make it modular? Example > being, having the Core GUI Controls in the main wxRuby2.so file, then > wxSocket, wxHTML, wxScintilla, etc, etc, being compiled into separate > extensions so that way, the programmer can decide on which controls to > include, and which not to?Yes, it''s been talked about on the dev mailing list before and I''m keen on the idea. It would make wxruby2 library load a bit faster (because few people are going to need to use HTML and Scintilla and Socket and AUI in the same app) and a bit lighter when bundling eg with rubyscript2exe. But I don''t think anyone''s tried implementing yet cheers a
Alex Fenton wrote:> Yes, it''s been talked about on the dev mailing list before and I''m keen > on the idea. It would make wxruby2 library load a bit faster (because > few people are going to need to use HTML and Scintilla and Socket and > AUI in the same app) and a bit lighter when bundling eg with > rubyscript2exe. > > But I don''t think anyone''s tried implementing yet > > cheers > a >I would start, but I have yet to understand how it''s built, so I wouldn''t have the foggiest of where to go, to begin decoupling all the advance features into seperate so/dll files to be packaged.