Is there a property or method that holds all the sub modes? The editor.session.$modes for a PHP editor includes ace/mode/text and ace/mode/php objects (not HTML, CSS, JavaScript).