[Zope] verbatim code in ZWikiPage
John Hunter
jdhunter@ace.bsd.uchicago.edu
19 May 2001 14:48:35 -0500
I would like to include some verbatim code in my zwiki. I have used
the :: syntax to indicate verbatim example code, as in
You will need some variant of the following in .emacs::
;;the following is wherever you put emacs-wiki.el
(setq load-path (cons (expand-file-name "~/emacs/wiki") load-path))
;;these vars must be defined before the emacs-wiki code is loaded
(defvar emacs-wiki-extended-link-regexp
"\\[\\[\\([^] \t\n]+\\)\\]\\(\\[\\([^]\n]+\\)\\]\\)?\\]"
"Regexp used to match [[extended][links]].")
The verbatim tag is being recognized (ie the newlines are honored and
the typewriter like font is used, but a lot of the syntax is lost.
For example, the above is rendered:
;;the following is wherever you put emacs-wiki.el
(setq load-path (cons (expand-file-name "~/emacs/wiki") load-path))
;;these vars must be defined before the emacs-wiki code is loaded
(defvar emacs-wiki-extended-link-regexp
"\\\\[\\([^? \t\n]+\\)\\]\\(\\\\([^?\n]+\\)\\]\\)?\\]"
"Regexp used to match [extended?links?].")
Is this a correctable(ed) problem with zwiki mode? Or am I doing
something wrong?
Thanks,
John Hunter