source:
NEMO/trunk/doc/latex/NEMO/main/NEMO_minted.sty
@
10419
Last change on this file since 10419 was 10146, checked in by nicolasmartin, 6 years ago | |
---|---|
File size: 1.4 KB |
Rev | Line | |
---|---|---|
[9388] | 1 | %% ============================================================================== |
2 | %% minted.sty: syntax highlighting configuration | |
3 | %% ============================================================================== | |
4 | ||
5 | ||
6 | %% Global highlighting style | |
7 | %% ============================================================================== | |
8 | ||
9 | \setminted{style=emacs, fontsize=\scriptsize, breaklines, frame=leftline} | |
10 | ||
11 | ||
12 | %% Specific per language | |
13 | ||
14 | \setminted[xml]{style=borland} | |
15 | ||
16 | ||
17 | %% Oneliner | |
18 | %% ============================================================================== | |
19 | ||
[10146] | 20 | \newmint[forline]{fortran}{} % \forline|...| |
21 | \newmint[xmlline]{xml}{} % \xmlline|...| | |
22 | \newmint[cmd]{console}{} % \cmd|...| | |
[9388] | 23 | |
24 | ||
25 | %% Multi-lines | |
26 | %% ============================================================================== | |
27 | ||
[10146] | 28 | \newminted[forlines]{fortran}{} % \begin{forlines} |
29 | \newminted[xmllines]{xml}{} % \begin{xmllines} | |
30 | \newminted[cmds]{console}{} % \begin{cmds} | |
31 | \newminted[clines]{c}{fontsize=\tiny} % \begin{clines} | |
[9388] | 32 | |
33 | ||
34 | %% File | |
35 | ||
[10146] | 36 | \newmintedfile[forfile]{fortran}{fontsize=\tiny} % \forfile{../namelists/nam...} |
[9388] | 37 | |
38 | ||
39 | %% Inline | |
40 | %% ============================================================================== | |
41 | ||
[10146] | 42 | \newmintinline[forcode]{fortran}{fontsize=auto, frame=lines} % \forcode{...} |
43 | \newmintinline[xmlcode]{xml}{ fontsize=auto, frame=lines} % \xmlcode{...} | |
44 | \newmintinline[snippet]{console}{fontsize=auto, frame=lines} % \snippet{...} |
Note: See TracBrowser
for help on using the repository browser.