stuart macgregor wrote: >> lyx 1.4.x has per-process sockets and a helper routine 'lyxclient' >> to make interaction with the expected instance simple. The eventual >> idea is to get rid of the pipes entirely as they're unix-specific. > > I would like to add a link between noweb document scrap paragraphs > and gvim, to allow gvim to edit the current scrap - via a key > binding or menu/toolbar button - to allow syntax colouring, > parenthesis matching, smart indent, name completion, pattern editing > etc. > > What facilities of what version of lyx do you suggest I look into?
If these scraps exist as separate text files, then use the External inset. The version in lyx 1.3.x isn't very pretty: the data is displayed on the LyX screen as a grey box. Nonetheless, you would have givent full control over the eventual output of the typeset document if you wrote a NowebScrap template. See the external_templates file for the 'language' and the templates that we currently provide. The version in lyx 1.4.x is both more powerful and prettier. (However, I don't recommend the use of lyx 1.4.x at the moment. It is too unstable.) The 'language' has changed somewhat with the conversion (in your case from text file to something that can be typeset by LaTeX) now being handled by the same 'converter' mechanism that you use to display 'weird' graphics formats like XFIG that the GUI libraries LyX uses don't understand. Use of this 'converter' mechanism means that you also get the ability to display the scrap in the LyX file in a WYSIWYM way --- either by converting the scrap to a graphic format like PNG, or by generating a preview of the LaTeX as can currently be done with math insets. As for editing the scrap: click on the inset and the External dialog pops up. Hit the 'Edit' button and launch gvim to edit the scrap. > gvim can generate html syntax coloured output - I don't suppose I > could run some filter to show that in the lyx scrap? Isn't this the sort of thing that a2ps can do? > This is probably beyond what a small effort can manage - > the noweb conversion would need modified too. As always, you are the best person to push forward something that you want... -- Angus