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