change color in latex code example
Example 1: tex color text
\usepackage{xcolor}
\begin{document}
This is a sample text in black.
\textcolor{blue}{This is a sample text in blue.}
\end{document}
Example 2: latex coloured text
\textcolor{red}{
}