latex equation multiple lines code example

Example 1: multi line comments latex

\usepackage{verbatim}
%^that goes at the very top

\begin{comment}
stuff commented out here
\end{comment}

Example 2: latex align equation

\begin{align}
(a+b)^2 &= (a+b)(a+b) \\
        &= a^2+2ab+b^2 
\end{align}

Example 3: aligning latex

\begin{align*}
x&=y           &  w &=z              &  a&=b+c\\
2x&=-y         &  3w&=\frac{1}{2}z   &  a&=b\\
-4 + 5x&=2+y   &  w+2&=-1+w          &  ab&=cb
\end{align*}

Example 4: latex uncomment multiple lines

Mark section
Ctrl + t 	//multiline comment
Crtl + u 	//mutliline uncomment