Skip to content
Snippets Groups Projects
Commit 38472d63 authored by sof's avatar sof
Browse files

[project @ 1998-02-19 20:52:19 by sof]

- Handle \begin{code} ... \end{code} + <code> ... </code>
parent a688e396
No related merge requests found
......@@ -40,11 +40,15 @@ miranda ([0-9]+(\-([0-9]+)?)?)?>
<VERB>\~ { printf ("&tilde;"); }
<VERB>\^ { printf ("&circ;"); }
<NORM>\<verb\> { printf ("<verb>"); PUSH NORM; BEGIN VERBENV; }
<VERBENV>\<\/verb\> { printf ("</verb>"); POP; }
<VERBENV>\&\& { printf ("&"); }
<VERBENV>\& { printf ("&ero;"); }
<VERBENV>\<\/ { printf ("&etago;"); }
<NORM>\<verb\> { printf ("<verb>"); PUSH NORM; BEGIN VERBENV; }
<NORM>\<code\> { printf ("<code>"); PUSH NORM; BEGIN VERBENV; }
<NORM>\\begin\{code\} { printf ("<code>"); PUSH NORM; BEGIN VERBENV; }
<VERBENV>\<\/verb\> { printf ("</verb>"); POP; }
<VERBENV>\<\/code\> { printf ("</code>"); POP; }
<VERBENV>\<\\end\{code\} { printf ("</code>"); POP; }
<VERBENV>\&\& { printf ("&"); }
<VERBENV>\& { printf ("&ero;"); }
<VERBENV>\<\/ { printf ("&etago;"); }
%%
int
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment