Skip to content

Instantly share code, notes, and snippets.

@y-yu
Created April 23, 2014 04:12
Show Gist options
  • Save y-yu/11202502 to your computer and use it in GitHub Desktop.
Save y-yu/11202502 to your computer and use it in GitHub Desktop.
% need color package
\definecolor{solarized@base03}{HTML}{002B36}
\definecolor{solarized@base02}{HTML}{073642}
\definecolor{solarized@base01}{HTML}{586e75}
\definecolor{solarized@base00}{HTML}{657b83}
\definecolor{solarized@base0}{HTML}{839496}
\definecolor{solarized@base1}{HTML}{93a1a1}
\definecolor{solarized@base2}{HTML}{EEE8D5}
\definecolor{solarized@base3}{HTML}{FDF6E3}
\definecolor{solarized@yellow}{HTML}{B58900}
\definecolor{solarized@orange}{HTML}{CB4B16}
\definecolor{solarized@red}{HTML}{DC322F}
\definecolor{solarized@magenta}{HTML}{D33682}
\definecolor{solarized@violet}{HTML}{6C71C4}
\definecolor{solarized@blue}{HTML}{268BD2}
\definecolor{solarized@cyan}{HTML}{2AA198}
\definecolor{solarized@green}{HTML}{859900}
\lstset{
basicstyle=\small\ttfamily\color{solarized@base00},
rulesepcolor=\color{solarized@base03},
numberstyle=\scriptsize\color{solarized@base01},
keywordstyle=\color{solarized@blue},
stringstyle=\color{solarized@cyan}\ttfamily,
commentstyle=\color{solarized@base01},
emphstyle=\color{solarized@red},
backgroundcolor=\color{solarized@base3},
sensitive=true,
breaklines=true,
breakatwhitespace=true,
framerule=0pt,
frame=l
showstringspaces=false,
tabsize=2,
basewidth={0.57em, 0.52em},
}
\lstdefinestyle{plain}{
numbers=left,
}
\lstdefinestyle{sh}{
numbers=left,
morekeywords={\$, \%}
}
\lstdefinestyle{php}{
numbers=left,
language=php,
}
\lstdefinestyle{perl}{
numbers=left,
language=perl,
}
\lstdefinestyle{html}{
numbers=left,
language=HTML,
}
\lstdefinestyle{c}{
numbers=left,
language=C
}
\lstdefinestyle{c++}{
numbers=left,
language=C++
}
\lstdefinestyle{latex}{
numbers=left,
language=[LaTeX]TeX,
morekeywords={part, chapter, subsection, subsubsection, paragraph, subparagraph, includegraphics,%
maketitle, textgt, textmc, lstdefinestyle, lstset, lstinline, lstinputlisting, tableofcontents, geometry}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment