New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
highlighting.tex in NEMO/trunk/doc/latex/global – NEMO

source: NEMO/trunk/doc/latex/global/highlighting.tex

Last change on this file was 14530, checked in by nicolasmartin, 3 years ago

Revert commit 14526, can't use verbatim envs in macro

File size: 1.2 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
Note: See TracBrowser for help on using the repository browser.