I can't make any guarantees about a full feature to handle this sort of case. However, for your particular example, I was able to get this to work using a user-defined language. Is myext the mode name of the language (the string that shows up in the list under Tools > Options > Languages > Language Manager)? Or is an extension found under Tools > Options > Languages > File Extension Manager that maps to a particular language?
You will need to send a language id to _SetEditorLanguage, rather than a mode name or an extension. There are built-in functions to help you figure out what a language id for a language is, such as _Modename2LangId() and _Ext2LangId().
Let me know if that helps or if you're still hitting a wall.