Example of configuring wxStyledTextCtrl/wxScintilla control as code editor for custom language

Posted by Greg on Stack Overflow See other posts from Stack Overflow or by Greg
Published on 2010-06-14T21:58:46Z Indexed on 2010/06/14 22:02 UTC
Read the original article Hit count: 515

Filed under:
|
|

How do you enable actions like

  • Goto line number
  • Find(/Replace)

There don't appear to be default triggers for these actions. There are a bunch of methods on the control, but I'm missing the first step of how to get the 'events' that would trigger these. For instance, how does one hook ctrl+f or F3/Alt+F3 in the control and make them do a find? Should I be looking at each key using EVT_STC_KEY?

Would also like any examples of using this control with

  • Custom language definition (say something similar to C++, but not C++)
  • Auto completion (basic keywords to start, or including variables)

© Stack Overflow or respective owner

Related posts about c++

Related posts about wxwidgets