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:
parent
c4f56f840c
commit
39d48fee6c
|
@ -52,4 +52,8 @@
|
|||
|
||||
% Enviroment @var txt
|
||||
% 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}}{}
|
|
@ -34,6 +34,9 @@
|
|||
\usepackage{fourier}
|
||||
\usepackage{array}
|
||||
\usepackage{makecell}
|
||||
\usepackage{inconsolata}
|
||||
\usepackage{blindtext}
|
||||
\usepackage{expdlist}
|
||||
|
||||
|
||||
\bibliographystyle{unsrtnat} %styles list https://www.sharelatex.com/learn/Natbib_bibliography_styles
|
||||
|
@ -106,12 +109,62 @@
|
|||
numbersep=8pt,
|
||||
rulecolor=\color{black},
|
||||
}
|
||||
|
||||
|
||||
\lstdefinestyle{plaintxt}{
|
||||
language=TeX,
|
||||
numbers=none,
|
||||
frame=trBL,
|
||||
frameround=fttt,
|
||||
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,
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue