Hi,
I just started working on a school project and I'm developping an IDE for
the PASCAL language. I'm using wxscintilla 1.69.2 with a wxWidgets interface
and I've succeded in display the scintilla text editor in my application.
Now I'm trying to get the text to colourise when I type some PASCAL keywords
but I can't get it to do it. I've set the lexer to wxSCI_LEX_PASCAL and I
have an event for every time a character is added and that works. But when I
use the Colourise fonction it doesn't do anything.
Here's the part of the code that concerns scintilla, please someone help
me...
// Scintilla Component
m_ScinTxt = new wxScintilla(this, SCITXT, wxDefaultPosition,
wxSize(700,460), wxTE_MULTILINE, _T(""));
// Pascal LExer
//m_ScinTxt->SetLexerLanguage(_T("pascal"));
m_ScinTxt->SetLexer(wxSCI_LEX_PASCAL);
m_ScinTxt->SetStyleBits(5);
// key words definition ?
m_ScinTxt->SetKeyWords (0, _T("begin"));
m_ScinTxt->SetText(_T("Scintilla\nbegin\nThomas end"));
// Color call
m_ScinTxt->Colourise (0,-1);
I couldn't find anything on the internet (maybe i'm looking in the wrong
place) are there any good websites about scintilla besides the API reference
?
Thank you for any help given...
Tom
_________________________________________________________________
Invite your Hotmail contacts to join your friends list with Windows Live
Spaces
http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest