@Michael-Vincent said in Notepad++ Language List:
I may “borrow” that :-)
@dinkumoil
It’s in Pascal! argh! I converted your recommendation into C++ (i think):
TCHAR langName[MAX_PATH];
lang_menu.clear();
do
{
SendMessage( nppData._nppHandle, NPPM_GETLANGUAGENAME, i, ( LPARAM ) langName );
lang_menu.push_back( wstrtostr( langName ));
i++;
} while ( strcmp( wstrtostr( langName ).c_str(), "External" ) != 0 );
lang_menu.push_back( "GLOBAL" );
This way no dependence on L_EXTERNAL or the Notepad_plus_msgs.h file.
Thanks for taking the time to recommend that!
Cheers.