Skip to content

Instantly share code, notes, and snippets.

@labseven
Last active September 8, 2017 16:30
Show Gist options
  • Save labseven/112ce5dd9b41cfe405f61eadee0074d1 to your computer and use it in GitHub Desktop.
Save labseven/112ce5dd9b41cfe405f61eadee0074d1 to your computer and use it in GitHub Desktop.
% Setup
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
\lstdefinestyle{mystyle}{
backgroundcolor=\color{backcolour},
commentstyle=\color{codegreen},
keywordstyle=\color{magenta},
numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple},
basicstyle=\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2
}
\lstset{style=mystyle}
% To use:
\lstinline{mode_adjust()}
\lstinputlisting[language=C]{blinkingLights.ino}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment