How to use the emmet/emmet.run function in emmet

To help you get started, we’ve selected a few emmet examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github emmetio / brackets-emmet / main.js View on Github external
activeEditor._handleTabKey();
				}
				return df.resolve();
			}
		}

		if (action == 'insert_formatted_line_break') {
			var activeEditor = editor.editor;
			var allowAction = !activeEditor.hasSelection() && ~lineBreakSyntaxes.indexOf(editor.getSyntax());
			if (!allowAction) {
				// handle Enter key for limited syntaxes only
				return df.reject();
			}
		}

		return emmet.run(action, editor);
	}