I'm interested to implement a custom input style which would appear (mostly?) like a normal "Input"
Cell
, but which would perform custom evaluation on shift-return or when evaluating a cell as a part of a group of cells. I'm interested of the custom evaluator, but also on easy way of creating such cells (keyboard shortcut?) or converting ordinary input cells to this custom variant.
How to approach this problem? My first assumption is that setting $Pre
and applying custom evaluation on basis of either Cell
style or CellTags
values would be the way to go. I'm a little uncertain if this is the most sensible approach since there are also CellEvaluationFunction
and CellProlog
. What are the caveats of these approaches?
CellEvaluationFunction
seems by far the best approach. $\endgroup$