On 3/27/2014 9:46 AM, Xan wrote:
\starttext
A
\xmlprocessfile{demo}{./dades.xml}{}
B
\stoptext
\startxmlsetups xml:demo:code
\blank
\start \ttx
\xmlverbatim{#1}
\stop
\blank
\stopxmlsetups
First of all, thank you very much, Hans.
But why can't I use
On 3/28/2014 9:13 AM, Xan wrote:
On 3/27/2014 9:46 AM, Xan wrote:
\starttext
A
\xmlprocessfile{demo}{./dades.xml}{}
B
\stoptext
\startxmlsetups xml:demo:code
\blank
\start \ttx
\xmlverbatim{#1}
\stop
\blank
\stopxmlsetups
First of all, thank you very much, Hans.
But
I can circumvent it with
\defineframedtext[framedcode][strut=yes,width=local,align=flushleft,frame=off]
\startxmlsetups xml:demo:codi
\blank
\startframedcode
\startlinenumbering\xmlverbatim{#1}\stoplinenumbering
\stopframedcode
\blank
\stopxmlsetups
Xan.
How can I achieve this results? (numbering line and color basically)
\startlinenumbering
etc
How can I disable hyphenize and wrap large lines?
Thanks,
Xan.
___
If your question is of interest to others as
On Fri, 28 Mar 2014 09:56:12 +0100
Hans Hagen pra...@wxs.nl ha escrit:
On 3/28/2014 9:13 AM, Xan wrote:
On 3/27/2014 9:46 AM, Xan wrote:
\starttext
A
\xmlprocessfile{demo}{./dades.xml}{}
B
\stoptext
\startxmlsetups xml:demo:code
\blank
\start \ttx
Hi,
I have this minimal example:
1) Tasques.context:
\environment ./entorn-xml
\starttext
A
\xmlprocessfile{demo}{./dades.xml}{}
B
\stoptext
2) entorn-xml.tex:
\startxmlsetups xml:demo:base
\xmlsetsetup{demo}{*}{-}
\xmlsetsetup{demo}{things|code|}{xml:demo:*}
\stopxmlsetups
On 3/27/2014 9:46 AM, Xan wrote:
\starttext
A
\xmlprocessfile{demo}{./dades.xml}{}
B
\stoptext
\startxmlsetups xml:demo:code
\blank
\start \ttx
\xmlverbatim{#1}
\stop
\blank
\stopxmlsetups
--
-