Return what kind of lexer language is used to highlight the code. See set_lexer() .
echo $scintilla->get_lexer();