mirror of
https://gitlab.com/netravnen/NetworkLabNotes.git
synced 2024-11-26 19:27:57 +00:00
New lst custom language cisco
This commit is contained in:
parent
c4f56f840c
commit
39d48fee6c
|
@ -53,3 +53,7 @@
|
||||||
% 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}}{}
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue