mailr20253 - in /trunk/docs/latex: fetch_docstrings.py relax.tex


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 21, 2013 - 22:48:
Author: bugman
Date: Fri Jun 21 22:48:44 2013
New Revision: 20253

URL: http://svn.gna.org/viewcvs/relax?rev=20253&view=rev
Log:
The relax prompt strings and help system are now keywords for the relax 
listings package definition.

The prompt strings "relax>" and "relax|" are now recognised as keywords and 
are coloured blue.  The
help system has been added as a normal Python keyword for highlighting.


Modified:
    trunk/docs/latex/fetch_docstrings.py
    trunk/docs/latex/relax.tex

Modified: trunk/docs/latex/fetch_docstrings.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/docs/latex/fetch_docstrings.py?rev=20253&r1=20252&r2=20253&view=diff
==============================================================================
--- trunk/docs/latex/fetch_docstrings.py (original)
+++ trunk/docs/latex/fetch_docstrings.py Fri Jun 21 22:48:44 2013
@@ -771,6 +771,7 @@
             'else',
             'exec',
             'global',
+            'help',
             'if',
             'in',
             'is',
@@ -798,7 +799,7 @@
         file.write("\lstdefinelanguage{relax}{\n")
 
         # Allow the user function '.' character to be part of the keywords.
-        file.write("    alsoletter={.},\n")
+        file.write("    alsoletter={.>|},\n")
 
         # Output the first set of Python keywords.
         file.write("    morekeywords={")
@@ -818,8 +819,11 @@
             file.write("%s," % name)
         file.write("},\n")
 
+        # Output the relax prompt.
+        file.write("    morekeywords=[4]{relax>,relax|},\n")
+
         # Output the relax user functions as keywords.
-        file.write("    morekeywords=[4]{")
+        file.write("    morekeywords=[5]{")
         for name in uf_names:
             file.write("%s," % name)
         file.write("},\n")

Modified: trunk/docs/latex/relax.tex
URL: 
http://svn.gna.org/viewcvs/relax/trunk/docs/latex/relax.tex?rev=20253&r1=20252&r2=20253&view=diff
==============================================================================
--- trunk/docs/latex/relax.tex (original)
+++ trunk/docs/latex/relax.tex Fri Jun 21 22:48:44 2013
@@ -57,7 +57,8 @@
     keywordstyle=\bfseries \color{ForestGreen},
     keywordstyle=[2]\bfseries \color{BlueViolet},
     keywordstyle=[3]\bfseries \color{SaddleBrown},
-    keywordstyle=[4]\bfseries \color{MidnightBlue},
+    keywordstyle=[4]\bfseries \color{Blue},
+    keywordstyle=[5]\bfseries \color{MidnightBlue},
     language=relax,
     numbers=left,
     numbersep=15pt,




Related Messages


Powered by MHonArc, Updated Sat Jun 22 00:00:03 2013