increase the size of text in overleaf code example
Example 1: latex text size
\Huge
\huge
\LARGE
\Large
\large
\normalsize
\small
\footnotesize
\scriptsize
\tiny
Example 2: latex change size of text
%Article
\documentclass[9pt]{extarticle}
%Report
\documentclass[14pt]{extreport}