Skip to content

Instantly share code, notes, and snippets.

@haoliplus
Created October 1, 2018 02:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haoliplus/25b2e0d176adad0da2b739c2c2989d4a to your computer and use it in GitHub Desktop.
Save haoliplus/25b2e0d176adad0da2b739c2c2989d4a to your computer and use it in GitHub Desktop.
% Two package we need
% for the code block
\usepackage{listings}
% for the color
\usepackage{xcolor}
\begin{lstlisting}[language=C,keywordstyle=\color{blue!70},commentstyle=\color{red!50!green!50!blue!50},frame=single, rulesepcolor=\color{red!20!green!20!blue!20}]
int main(int argc, char ** argv)
\end{lstlisting}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment