Ok i seem to have gotten this sorta working though there must be an internal issue with wxscintilla. I have the lexer file setup properly and everything. Here is what I've found so far.
In wxscintilla.h:
wxSCI_LEX_PHPSCRIPT 69
Default 118
Start tag 18
Matched Bracket 34
Unmatched Bracket 35
Complex variable 104
Double quote string 119
Single quote string 120
Keyword 121
Number 122
Variable 123
Comment 124
One line comment 125
String variable 126
Operator 127
In LexHTML.cxx:
static const char * const htmlWordListDesc[] = {
"HTML elements and attributes", // 0
"JavaScript keywords", // 1
"VBScript keywords", // 2
"Python keywords", // 3
"PHP keywords", // 4
"SGML and DTD keywords", // 5
0,
};
static const char * const phpscriptWordListDesc[] = {
"", //Unused 0
"", //Unused 1
"", //Unused 2
"", //Unused 3
"PHP keywords", // 4
"", //Unused // 5
0,
};
The text output that I get in cb when i load a php file is something like this
<?php
class database {
}
?>
Though the text color is still black just blue underlined. The <?php and ?> are correct in the coloring that i gave them.
So more info that could help is that when it was on wxSCI_LEX_HTML and you wrote < ?PHP with the space the underlining went away and syntax highlighting work within sets of < > as if it where an HTML tag and like normal if it wasn't within < >. Though keyword highlighting still doesn't work