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

Last change on this file since 11174 was 11174, checked in by nicolasmartin, 15 months ago

Extension renaming
As .tex extension seems to be recognized natively by Trac for syntax highlighting, prefer to use it for all files under ./latex/global.
The difference between .tex or .sty is a bit cryptic for what I currently know

File size: 993 bytes
Line 
1%% Minted package: syntax highlighting configuration
2%% ==============================================================================
3
4%% Global highlighting style
5\setminted{style=emacs, fontsize=\scriptsize, breaklines, frame=leftline}
6\setminted[xml]{style=borland} %% Specific per language
7
8%% Oneliner
9\newmint[forline]{fortran}{}   % \forline|...|
10\newmint[xmlline]{xml}{}       % \xmlline|...|
11\newmint[cmd]{console}{}       % \cmd|...|
12
13%% Multi-lines
14\newminted[forlines]{fortran}{}   % \begin{forlines}
15\newminted[xmllines]{xml}{}       % \begin{xmllines}
16\newminted[cmds]{console}{}       % \begin{cmds}
17\newminted[clines]{c}{}           % \begin{clines}
18
19%% File
20\newmintedfile[forfile]{fortran}{}   % \forfile{../namelists/nam...}
21
22%% Inline
23\newmintinline[forcode]{fortran}{fontsize=auto, frame=lines}   % \forcode{...}
24\newmintinline[xmlcode]{xml}{    fontsize=auto, frame=lines}   % \xmlcode{...}
25\newmintinline[snippet]{console}{fontsize=auto, frame=lines}   % \snippet{...}
Note: See TracBrowser for help on using the repository browser.