diff --git a/src/format.js b/src/format.js
index <HASH>..<HASH> 100644
--- a/src/format.js
+++ b/src/format.js
@@ -94,7 +94,12 @@ var operations = {
 		cm.focus();
 	},
 	blockApply(cm, format) {
-		// TODO
+		var startPoint = cm.getCursor('start');
+		var line = cm.getLine(startPoint.line);
+		var text = format.before + (line.length ? line : format.placeholder);
+		cm.replaceRange(text, { line: startPoint.line, ch: 0 }, { line: startPoint.line, ch: line.length + 1 });
+		cm.setSelection({ line: startPoint.line, ch: format.before.length }, { line: startPoint.line, ch: text.length });
+		cm.focus();
 	},
 	blockRemove(cm, format) {
 		// TODO
Adding blockApply for block formatting