Multi-line expressions

I remember being able to extend expressions over multiple lines without a problem in earlier versions of julia.

How do I wrap an expression over multiple lines now when it gets too long?

Particularly, I want to break at the equals sign below

for j in 2:Nz    #copying the first layer into the entire cube
    X[(Ncell*Ny*Nx*(j-1) .+(1:Ncell*Nx*Ny)),:] =X[1:Ncell*Nx*Ny,:] .+(j-1)*cM;
end

Line breaks after = (or inside a parens, or after an binary operator like .+) are still fine.

2 Likes

ahh, was doing the break before the =
silly mistake