# Line break in Cadabra 2

+1 vote

OK thanks. Here's one more: How to do line-break? If the expression is long (e.g. many substitutions at once), then it's useful to be able to break the line. It could be done in Cadabra 1, but v.2 is giving error.

+1 vote

You can enter expressions as

ex:= A + B
+ C + D;


If you have large substitution rules, you need to enter them as an expression first, and then do the substitution,

rl:= A -> B + C
+ D + E;

substitute(ex, rl)


It is not possible to enter multiline expressions using $...$ notation.