source:
NEMO/trunk/doc/latex/global/highlighting.tex
@
14257
Last change on this file since 14257 was 14257, checked in by nicolasmartin, 3 years ago | |
---|---|
File size: 1.3 KB |
Line | |
---|---|
1 | %% ================================================================================================= |
2 | %% Syntax highlighting configuration |
3 | %% ================================================================================================= |
4 | |
5 | %% Global highlighting style |
6 | \definecolor{bg}{HTML}{f8f8f8} %% ? |
7 | \usemintedstyle{emacs} |
8 | \setminted{bgcolor=bg,fontsize=\scriptsize,breaklines} |
9 | \setminted[xml]{style=borland} %% Specific style for XML |
10 | |
11 | %% Inline |
12 | \newmintinline[forcode]{fortran}{bgcolor=,fontsize=auto} %% \forcode{...} |
13 | \newmintinline[xmlcode]{xml}{ bgcolor=,fontsize=auto} %% \xmlcode{...} |
14 | \newmintinline[snippet]{console}{bgcolor=,fontsize=auto} %% \snippet{...} |
15 | |
16 | %% Oneliner |
17 | \newmint[forline]{fortran}{} %% \forline|...| |
18 | \newmint[xmlline]{xml }{} %% \xmlline|...| |
19 | \newmint[cmd]{ console}{} %% \cmd|...| |
20 | |
21 | %% Multi-lines |
22 | \newminted[forlines]{fortran}{} %% \begin{forlines} |
23 | \newminted[xmllines]{xml }{} %% \begin{xmllines} |
24 | \newminted[cmds]{ console}{} %% \begin{cmds} |
25 | \newminted[clines]{ c }{} %% \begin{clines} |
26 | |
27 | %% File (namelist or module) |
28 | \newmintedfile[forfile]{fortran}{} |
29 | |
30 | %% Namelists inclusion |
31 | \newcommand{\nlst}[1]{\forfile{../../../namelists/#1}} |
32 | %\newcommand{\nlst}[1]{ |
33 | % \begin{listing} |
34 | % \newmintedfile{fortran}{../../../namelists/#1} |
35 | % \caption{\forcode{}} |
36 | % \label{lst:#1} |
37 | % \end{listing} |
38 | %} |
Note: See TracBrowser
for help on using the repository browser.