@@ -181,6 +181,8 @@ title={#1}
181181\RequirePackage {lstlangKB}
182182\RequirePackage {textcomp} % for textasciitilde
183183
184+ \def\@codeStyle@background {\color {indigo!10!white}}
185+ 184186\lstdefinestyle {codeStyle}{
185187 belowcaptionskip=1\baselineskip ,
186188 breaklines=true,
@@ -194,20 +196,23 @@ title={#1}
194196 commentstyle=\itshape\color {black!70!white}, % purple!40!black
195197 identifierstyle=\color {black},% blue
196198 stringstyle=\color {green!50!black},
197- backgroundcolor=\color {indigo!10!white}, % blue!5!white
199+ backgroundcolor=\@codeStyle@background ,
198200 lineskip=.2em,
199201 numbers=left
200202 % frameround=tttt
201203}
202204
205+ \def\@shellStyle@background {\color {black}}
206+ \def\@shellStyle@basicstyle {\scriptsize\codefont\color {green}}
207+ 203208\lstdefinestyle {shellStyle}{
204209 belowcaptionskip=1\baselineskip ,
205210 breaklines=true,
206- frame=shadwbox ,
207- rulesepcolor=\color {blue},
211+ frame=trbl ,
212+ % rulesepcolor=\color{blue},
208213 xleftmargin=1.25cm,
209- basicstyle=\scriptsize\codefont\color {green} ,
210- backgroundcolor=\color {black} ,
214+ basicstyle=\@shellStyle@basicstyle ,
215+ backgroundcolor=\@shellStyle@background ,
211216 lineskip=.2em
212217 % morekeywords={sudo},keywordstyle=\color{red},
213218 % frameround=tttt
@@ -538,39 +543,11 @@ title={#1}
538543
539544 \def\nameword ##1{`` {\itshape\bfseries ##1}" }
540545
541- % \selectcolormodel{gray}
542- 543- \lstdefinestyle {codeStyle}{
544- belowcaptionskip=1\baselineskip ,
545- breaklines=true,
546- frame=L,
547- xleftmargin=1.5cm,% \parindent,
548- showstringspaces=false,
549- basicstyle=\scriptsize\ttfamily\bfseries , % \codefont,
550- keywordstyle=\bfseries\color {blue!70!black}, % green!40!black
551- keywordstyle = [2]{\bfseries\color {orange!70!black}},
552- keywordstyle = [3]{\bfseries\color {red!70!black}},
553- commentstyle=\itshape\color {black!70!white}, % purple!40!black
554- identifierstyle=\color {black},% blue
555- stringstyle=\color {green!50!black},
556- backgroundcolor=\color {white},% blue!5!white
557- lineskip=.2em,
558- numbers=left
559- % frameround=tttt
560- }
546+ \def\@codeStyle@background {\color {white}}
547+ \def\@shellStyle@background {\color {white}}
548+ \def\@shellStyle@basicstyle {\scriptsize\codefont\color {black}}
561549
562- \lstdefinestyle {shellStyle}{
563- belowcaptionskip=1\baselineskip ,
564- breaklines=true,
565- frame=lrtb,
566- rulesepcolor=\color {blue},
567- xleftmargin=1.25cm,
568- basicstyle=\scriptsize\codefont\color {black},
569- backgroundcolor=\color {white},
570- lineskip=.2em
571- % morekeywords={sudo},keywordstyle=\color{red},
572- % frameround=tttt
573- }
550+ % \selectcolormodel{gray}
574551
575552 \renewcommand {\langlogo }[3]{}
576553
0 commit comments