ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Exporting verbatim text
@ 2011-10-15  3:29 Aditya Mahajan
  2011-10-15  8:46 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2011-10-15  3:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

In the vim module, I use vim to generate TeX code that looks roughly as

~~~
   \SYN[Type]{public} \SYN[Type]{static} \SYN[Type]{void} 
main\SYN[javaParen]{(}String args\SYN[javaParen]{)} \{
     System.out.println\SYN[javaParen]{(}\SYN[Constant]{"Hello 
World"}\SYN[javaParen]{)} ;
   \}
~~~

When generating pdf output, I simply set appropriate catcodes so that
the line breaks and leading white spaces are significant. However, when 
exporting to xml, leading white space is ignored while line break is 
translated to <break/>. How can I export in such a way that leading white 
spaces are preserved (and ideally no <break/> is generated, but I can deal 
with that using CSS).

Aditya

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-10-15 15:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-15  3:29 Exporting verbatim text Aditya Mahajan
2011-10-15  8:46 ` Hans Hagen
2011-10-15 15:54   ` Aditya Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).