lib/action/balance.js
function(editor, direction) {
			direction = String((direction || 'out').toLowerCase());
			var info = editorUtils.outputInfo(editor);
			if (actionUtils.isSupportedCSS(info.syntax)) {
				return balanceCSS(editor, direction);
			}
			
			return balanceHTML(editor, direction);
		}
function(editor, direction) {
			direction = String((direction || 'out').toLowerCase());
			var info = editorUtils.outputInfo(editor);
			if (actionUtils.isSupportedCSS(info.syntax)) {
				return balanceCSS(editor, direction);
			}
			
			return balanceHTML(editor, direction);
		}
function ( editor , direction ) { direction = String ( ( direction || 'out' ) . toLowerCase ( ) ) ; var info = editorUtils . outputInfo ( editor ) ; if ( actionUtils . isSupportedCSS ( info . syntax ) ) { return balanceCSS ( editor , direction ) ; } return balanceHTML ( editor , direction ) ; }
Find and select HTML tag pair
@param {IEmmetEditor} editor Editor instance
@param {String} direction Direction of pair matching: 'in' or 'out'.
Default is 'out'
Find and select HTML tag pair