generated from ivoa-std/doc-template
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from ivoa-std/loumir-syntax-highlight-XML
syntax highlighting for XML
- Loading branch information
Showing
2 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
\usepackage{listings} | ||
\usepackage{color} | ||
|
||
\definecolor{dkgreen}{rgb}{0,0.6,0} | ||
\definecolor{OliveGreen}{rgb}{0.1,0.6,0.1} | ||
\definecolor{gray}{rgb}{0.5,0.5,0.5} | ||
\definecolor{mauve}{rgb}{0.58,0,0.82} | ||
\definecolor{gray}{rgb}{0.4,0.4,0.4} | ||
\definecolor{darkblue}{rgb}{0.0,0.0,0.6} | ||
\definecolor{lightblue}{rgb}{0.0,0.0,0.9} | ||
\definecolor{cyan}{rgb}{0.0,0.6,0.6} | ||
\definecolor{darkred}{rgb}{0.6,0.0,0.0} | ||
|
||
|
||
\lstset{ | ||
basicstyle=\ttfamily\footnotesize, | ||
columns=fullflexible, | ||
showstringspaces=false, | ||
numbers=left, % where to put the line-numbers | ||
numberstyle=\tiny\color{gray}, % the style that is used for the line-numbers | ||
stepnumber=1, | ||
numbersep=5pt, % how far the line-numbers are from the code | ||
backgroundcolor=\color{white}, % choose the background color. You must add \usepackage{color} | ||
showspaces=false, % show spaces adding particular underscores | ||
showstringspaces=false, % underline spaces within strings | ||
showtabs=false, % show tabs within strings adding particular underscores | ||
frame=none, % adds a frame around the code | ||
rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. commens (green here)) | ||
tabsize=2, % sets default tabsize to 2 spaces | ||
captionpos=b, % sets the caption-position to bottom | ||
breaklines=true, % sets automatic line breaking | ||
breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace | ||
title=\lstname, % show the filename of files included with \lstinputlisting; | ||
% also try caption instead of title | ||
commentstyle=\color{gray}\upshape | ||
} | ||
|
||
|
||
\lstdefinelanguage{XML} | ||
{ | ||
morestring=[s][\color{mauve}]{"}{"}, | ||
morestring=[s][\color{black}]{>}{<}, | ||
morecomment=[s]{<?}{?>}, | ||
morecomment=[s][\color{dkgreen}]{<!--}{-->}, | ||
stringstyle=\color{black}, | ||
identifierstyle=\color{lightblue}, | ||
keywordstyle=\color{red}, | ||
morekeywords={xmlns,xsi,noNamespaceSchemaLocation,type,id,source,target,version,tool,roleRef} | ||
} |