ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> scintilla-interest
scintilla-interest
Re: [scintilla] New Guy - Question
by Neil Hodgson other posts by this author
Feb 28 2004 9:46PM messages near this date
Re: [scintilla] GetStyleAt always returns 0 | [scintilla] New Guy - Question
Doyle Whisenant:


>  Sorry to ask such a basic question but does anyone have an example of
>  using Scintilla with out an external lexer? I want to define my styles
>  at run time instead of using a predefined lexer. An example in C would
>  be great but C++ is OK as long as it's not MFC. I've studied the Scite
>  source but have never understood how the lexers work. I can read some
>  C++ but...

   Old versions of SciTE performed the lexing themselves by handling the
StyleNeeded notification. Look in
http://scintilla.sourceforge.net/SciTE110.zip
   Find SCN_STYLENEEDED in SciTE.cxx and follow the calls to KeyWords.cxx
which contains simple lexers like ColourisePropsDoc and complex ones like
ColouriseHyperTextDoc and ColouriseCppDoc. To receive SCN_STYLENEEDED in
your container window, set the lexer to SCLEX_CONTAINER.

   Neil

_______________________________________________
Scintilla-interest mailing list
Scintilla-interest@[...].org
http://mailman.lyra.org/mailman/listinfo/scintilla-interest
Thread:
Otto Wyss
Neil Hodgson
Neil Hodgson
Doyle Whisenant

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved