Gabor Szabo wrote:

  Hi,

If I understand correctly the file

http://search.cpan.org/src/MBARBON/Wx-0.84/ext/stc/cpp/st_constants.cpp

is controlling the list of available syntax highlighters in Wx::STC.

  Not exactly: it is exporting the ones provided by wxWidgets/Scintilla.

I have several questions:

1) What controls the ifdefs such as this?

#ifdef wxSTC_LEX_PHP
        r( wxSTC_LEX_PHP );
#endif

  All the wxSTC_LEX_* constants are defined in include/wx/stc/stc.h: in
the wxWidgets distribution.

I wanted to use PHP but it is not available in my version of wxPerl.
How can one add that?

  If the constant is in st_constants.cpp but it is not defined by the
wxWidgets version you are using, there are two possibilities: if the Scintilla version bundled in wxWidgets supportes it, you can just
use the correct numeric constant; if that version of Scintilla does not
support PHP, I think you are out of luck.

2) There are several important languages missing from the list of the lexers
     (wxSTC_LEX_*), most importantly for me is Javasript.
    Who and how can add it?

  wxSTC_LEX_ESCRIPT's value is 41; I am now checking all the missing
STC constants.

3) How can one add a LEX for the still changing Perl 6 or Parrot?

  No idea, I think you will need to study Scintilla documentation for
that (but I think it means writing a new lexing module).

HTH
Mattia

Reply via email to