Niranjan_T

mylisting.tex

Dec 1st, 2021 (edited)
754
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. \documentclass[12pt,a4paper]{article}
  2. \usepackage{listings}
  3. \usepackage{xcolor}
  4. \usepackage[most]{tcolorbox}
  5.  
  6. \begin{document}
  7. \lstset{%
  8.   basicstyle=\scriptsize\ttfamily,%
  9.   commentstyle=\color{purple},% Works :)
  10.   morecomment=[l]{\#}%
  11. }
  12. \section{There is no zero here}
  13. \begin{lstlisting}
  14. script.txt
  15. # hello
  16. hello
  17. \end{lstlisting}
  18. \end{document}
RAW Paste Data