On 4-8-2010 9:36, Aditya Mahajan wrote:
On Wed, 4 Aug 2010, Hans Hagen wrote:
On 4-8-2010 7:23, Aditya Mahajan wrote:
(that writes contents to file and inputs the result) but cannot easily create \typevimTEX. For that I will need to reimplement all the catcode trickery of \definetype and \definebuffer.
\definetype[TEXtype][option=TEX]
test \TEXtype{oeps \test{oeps}} test
But I want to store the argument "oeps \test{oeps}" in an external file, process that external file with vim, and \input the result.
As pretty printing happens in lua, you can intercept the string there. Just look at pret-*.lua: there is a visualizer.flush_line in there that can write to a file, apply vim, and read in the result (can also be words instead of lines). Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------