GOD DAMN THAT WAS A HARD BUG TO FIND!
the problem is that by default scintilla uses 5 style bits, but all the required PHP styles require 7 bits. In file sdk/editorcolourset.cpp I added the single line (marked with +++)
void EditorColourSet::Apply(HighlightLanguage lang, cbStyledTextCtrl* control)
{
...
control->SetLexer(mset.m_Lexers);
+++ control->SetStyleBits(7);
...
}
and used the attached lexer file. Now php enclosed in "<?php" and "?>" renders fine (I haven't tested thoroughly).
I'm pretty sure you can also use a php specific lexer file with lexer code wxSCI_LEX_PHPSCRIPT (69). We can also add styles and keywords for all of the supported html embedded scripts (Javascript/Python etc) as per the html properties file in SciTE. I'm guessing a proper fix should only change the stylebits for languages that need the extra bits (obviously html and php - not sure what else).
/sleeps
[attachment deleted by admin]
Mmmmh... it seems to work with:
control->SetStyleBits(control->GetStyleBitsNeeded());
This seems more "generic"... dmoore: Mind giving it a try, too for more testing?