org-babel-demarcate-block

org-babel-demarcate-block is an interactive compiled Lisp function in `ob-core.el'.


(org-babel-demarcate-block &optional ARG)

Wrap or split the code in the region or on the point.
When called from inside of a code block the current block is
split. When called from outside of a code block a new code block
is created. In both cases if the region is demarcated and if the
region is not active then the point is demarcated.