lib/model/index.js
function getSyntax(editor) {
	const mode = editor.getMode();

	if (mode.name === 'htmlmixed') {
		return 'html';
	}

	return mode.name === 'xml' ? mode.configuration : mode.name;
}
function getSyntax(editor) {
	const mode = editor.getMode();

	if (mode.name === 'htmlmixed') {
		return 'html';
	}

	return mode.name === 'xml' ? mode.configuration : mode.name;
}
Returns parser-supported syntax of given editor (like 'html', 'css' etc.).
Returns `null` if editor’s syntax is unsupported
@param  {CodeMirror} editor
@return {String}