How to write the unwriteable file?

2016-02-01 Thread 'Terry Brown' via leo-editor
Hmm, unfortunately I want to write files which contain content like this:     this part is LaTeX etc. etc.     <>=    this part is R code    @     more LaTeX here https://github.com/yihui/knitr/blob/master/inst/examples/knitr-minimal.Rnw is an example, and http://yihui.name/knitr/demo/minimal/,

Re: How to write the unwriteable file?

2016-02-01 Thread Zoltan Benedek
Hi Terry, A stupid, quick and dirty workaround: Change '<<' and '>>' before Leo editing to something else, let's say '<{<{<' and '>}>}>' (be sure that doesn't appears in the text) and change back after Leo editing. Using sed, may be something like: find /your/path -type f -print0 | xargs -0