Re: [O] export code with backslashes

2015-03-18 Thread Charles C. Berry
On Wed, 18 Mar 2015, hy...@lactose.homelinux.net wrote: "Charles C. Berry" writes: (defun org-export-ascii-filter-code (text back-end info) "Replace `\\n' with `\\' in ascii code." (if (eq back-end 'ascii) (replace-regexp-in-string "\n" "\\\n" (org-babel-chomp

Re: [O] export code with backslashes

2015-03-18 Thread hymie
"Charles C. Berry" writes: > (defun org-export-ascii-filter-code (text back-end info) > "Replace `\\n' with `\\' in ascii code." > (if (eq back-end 'ascii) > (replace-regexp-in-string > "\n" "\\\n" > (org-babel-chomp > (org-export-string-as text 'ascii t)

Re: [O] export code with backslashes

2015-03-16 Thread hymie
"Charles C. Berry" writes: >On Mon, 16 Mar 2015, hymie! wrote: >> useradd -U -G wheel -p \ >> '$6$wcMRrkcdGeNHLT5b$password0ISmGZSsILOyV/WJnpassword//' \ >> accountname >> >> Is such a thing possible? > >Yes. > >#+BEGIN_SRC emacs-lisp > (defun org-export-ascii-filter-code (text back-end info) >

Re: [O] export code with backslashes

2015-03-16 Thread Charles C. Berry
On Mon, 16 Mar 2015, hymie! wrote: Greetings. I'm only asking this question because it seems that Orgmode can do anything, although I admit that what I'm asking for is probably outside the normal scope. I have snips of code in my org files, denoted as ~code~. I prefer ~code~ to BEGIN_SRC bloc

[O] export code with backslashes

2015-03-16 Thread hymie!
Greetings. I'm only asking this question because it seems that Orgmode can do anything, although I admit that what I'm asking for is probably outside the normal scope. I have snips of code in my org files, denoted as ~code~. I prefer ~code~ to BEGIN_SRC blocks, because I don't like the big grey