From 2d53f43441e22352ded6413e349131fdb8b4f3bf Mon Sep 17 00:00:00 2001
From: deva <deva>
Date: Tue, 9 Dec 2008 11:16:00 +0000
Subject: Added syntax highlighting fr the pracro xml language.

---
 design/pml.tex | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 design/pml.tex

(limited to 'design/pml.tex')

diff --git a/design/pml.tex b/design/pml.tex
new file mode 100644
index 0000000..6357a8f
--- /dev/null
+++ b/design/pml.tex
@@ -0,0 +1,38 @@
+%
+% Set colours for syntax highlighting
+%
+\usepackage{color}
+\definecolor{commentcolour}{rgb}{0.69, 0.13, 0.13}
+\definecolor{tagcolour}{rgb}{0.0, 0.0, 1.0}
+\definecolor{keywordcolour}{rgb}{0.72, 0.52, 0.04}
+\definecolor{stringcolour}{rgb}{0.73, 0.56, 0.56}
+\definecolor{identifiercolour}{rgb}{0.0, 0.0, 0.0}
+
+\usepackage{listings}
+\lstset{
+  basicstyle=\ttfamily\small,
+  keywordstyle=[0]\color{tagcolour},
+  keywordstyle=[1]\color{keywordcolour},
+  identifierstyle=\color{identifiercolour},
+  commentstyle=\color{commentcolour},
+  stringstyle=\color{stringcolour},
+  showstringspaces=false
+}
+
+\lstdefinelanguage{PML}{
+  morekeywords=[0]{window,frame,spacer,label,lineedit,textedit,button,%
+    checkbox,togglebutton,radiobuttons,combobox,listbox,multilist}, %
+  morekeywords=[1]{name,value,caption}, %
+  tag=**[s]<>,%
+  sensitive=f,%
+  morestring=[d]",% ??? doubled
+  MoreSelectCharTable=%
+  \lst@CArgX--\relax\lst@DefDelimB{}{}%
+                                  {\ifnum\lst@mode=\lst@tagmode\else
+                                    \expandafter\@gobblethree
+                                    \fi}%
+                                  \lst@BeginComment\lst@commentmode{{\lst@commentstyle}}%
+                                  \lst@CArgX--\relax\lst@DefDelimE{}{}{}%
+                                  \lst@EndComment\lst@commentmode
+}[keywords,comments,strings,html]%
+\lstset{language=PML}
-- 
cgit v1.2.3

