Scott Kostyshak <skostysh <at> princeton.edu> writes: > > On Tue, Jul 2, 2013 at 5:34 PM, Sykledust <sykledust <at> gmail.com> wrote: > > I just discovered the 'program listing' inset after writing > > a quite large document containing a lot of programming code. > > For this I just used a typewriter font, and for blocks of code > > I used the Quote environment to have it indented. > > I would now like to change all instances of the Quote > > paragraphs to program listing floats and all other instances > > of typewriter font use to inline program listings. > > I tried to use advanced find & replace with the > > regular expression ".*" but without luck. > > > > All suggestions are appreciated > > You'd probably have better luck just doing a find replace on the .lyx > file directly. Make one change manually in LyX to see what you want to > change to and then sed the rest. Of course make backups and be > careful. > > Scott > >
In fact I had a go with that also, but it actually seems simpler to manually do the formatting Inside LyX since I have to replace multiple sequential instances of \begin_layout Quote Code here \end_layout with a single program listing inset... For the non-block code it could perhaps be a feasible approach, but then I thought I'd ask here first just to make sure that there isn't a sollution similar to how sections can be promoted and demoted through the outline.
