source:
NEMO/trunk/doc/latex/global/highlighting.tex
@
11176
Last change on this file since 11176 was 11176, checked in by nicolasmartin, 5 years ago | |
---|---|
File size: 1018 bytes |
Line | |
---|---|
1 | %% Syntax highlighting configuration |
2 | %% ============================================================================== |
3 | |
4 | \usepackage[outputdir=../build]{minted} |
5 | |
6 | %% Global highlighting style |
7 | \setminted{style=emacs, fontsize=\scriptsize, breaklines, frame=leftline} |
8 | \setminted[xml]{style=borland} %% Specific per language |
9 | |
10 | %% Oneliner |
11 | \newmint[forline]{fortran}{} % \forline|...| |
12 | \newmint[xmlline]{xml}{} % \xmlline|...| |
13 | \newmint[cmd]{console}{} % \cmd|...| |
14 | |
15 | %% Multi-lines |
16 | \newminted[forlines]{fortran}{} % \begin{forlines} |
17 | \newminted[xmllines]{xml}{} % \begin{xmllines} |
18 | \newminted[cmds]{console}{} % \begin{cmds} |
19 | \newminted[clines]{c}{} % \begin{clines} |
20 | |
21 | %% File |
22 | \newmintedfile[forfile]{fortran}{} % \forfile{../namelists/nam...} |
23 | |
24 | %% Inline |
25 | \newmintinline[forcode]{fortran}{fontsize=auto, frame=lines} % \forcode{...} |
26 | \newmintinline[xmlcode]{xml}{ fontsize=auto, frame=lines} % \xmlcode{...} |
27 | \newmintinline[snippet]{console}{fontsize=auto, frame=lines} % \snippet{...} |
Note: See TracBrowser
for help on using the repository browser.