1
0
Fork 0
mirror of https://gitlab.com/netravnen/NetworkLabNotes.git synced 2024-11-23 19:17:54 +00:00

New lst custom language cisco

This commit is contained in:
chhan11 2017-05-30 22:25:51 +02:00
parent c4f56f840c
commit 39d48fee6c
2 changed files with 58 additions and 1 deletions

View file

@ -52,4 +52,8 @@
% Enviroment @var txt % Enviroment @var txt
% changes code styling to: in frame, white bg. % changes code styling to: in frame, white bg.
\lstnewenvironment{txt}{\lstset{style=plaintxt}}{} \lstnewenvironment{txt}{\lstset{style=plaintxt}}{}
% Enviroment @var cisco
\lstnewenvironment{cisco}{\lstset{style=cisco}}{}

View file

@ -34,6 +34,9 @@
\usepackage{fourier} \usepackage{fourier}
\usepackage{array} \usepackage{array}
\usepackage{makecell} \usepackage{makecell}
\usepackage{inconsolata}
\usepackage{blindtext}
\usepackage{expdlist}
\bibliographystyle{unsrtnat} %styles list https://www.sharelatex.com/learn/Natbib_bibliography_styles \bibliographystyle{unsrtnat} %styles list https://www.sharelatex.com/learn/Natbib_bibliography_styles
@ -106,12 +109,62 @@
numbersep=8pt, numbersep=8pt,
rulecolor=\color{black}, rulecolor=\color{black},
} }
\lstdefinestyle{plaintxt}{ \lstdefinestyle{plaintxt}{
language=TeX, language=TeX,
numbers=none, numbers=none,
frame=trBL, frame=trBL,
frameround=fttt, frameround=fttt,
backgroundcolor=\color{white}, backgroundcolor=\color{white},
boxpos=c,
}
\lstdefinelanguage{cisco}{
keywords={
end,
hostname,
Interface int,
ip,
line,
login,
network,
no,
router,
sh,
show,
shut,
shutdown,
version,
vlan,
vrf,
},
keywordstyle=\color{blue}\bfseries,
ndkeywords={
addr,
address,
aux,
bgp,
con,
console,
dhcp,
eigrp,
g,
GigabitEthernet,
isis,
ospf,
ospfv3,
pool,
rip,
vty,
},
ndkeywordstyle=\color{darkgray}\bfseries,
identifierstyle=\color{black},
sensitive=false,
comment=[l]{!},
commentstyle=\color{purple}\ttfamily,
stringstyle=\color{red}\ttfamily,
} }