Enter LaTeX code 
 

\usepackage{cancel,color} \Large \color{red} \frac{32}{64} =\frac{2\times4\times4}{4\times4\times4} =\frac{\cancelto{1}{2}\times\cancel{4}\times\cancel{4}}{\cancelto{2}{4}\times\cancel{4}\times\cancel{4}} =\color{black}\boxed{\color{blue} \frac{1}{2}} 
If you have TeX on your server then download mathTeX or, if not, consider using mimeTeX
Compiling your own version of mathTeX gives you a host of options to customise to your needs
mathTeX and mimeTeX are copyright of John Forkosh Associates, Inc.