Re: [O] inline source code blocks

2014-03-06 Thread Eric Schulte
Ilya Shlyakhter ilya_...@alum.mit.edu writes: Some questions about inline source code blocks: - They're not fontified even when org-src-fontify-natively is true -- correct? Correct. - They're not included in tangled code; is that intended behavior? The manual does not seem to say

Re: [O] inline source code blocks

2014-03-06 Thread Ilya Shlyakhter
I think code blocks work well for non-inline code. For a series of one-liners interspersed with comments, code block boundaries triple the number of lines. E.g. the example in the manual at http://orgmode.org/org.html#noweb_002dref +BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh

Re: [O] inline source code blocks

2014-03-06 Thread Ilya Shlyakhter
On 3/6/14 5:04 PM, Eric Schulte wrote: I think code blocks work well for non-inline code. For a series of one-liners interspersed with comments, code block boundaries triple the number of lines. E.g. the example in the manual at http://orgmode.org/org.html#noweb_002dref +BEGIN_SRC sh

Re: [O] inline source code blocks

2014-03-06 Thread Eric Schulte
I'm finding that Org would work well as a literate programming system for C++, if the code block starts and ends didn't get in the way so much during frequent switching between code and prose. I use the following to make code block syntax less intrusive Thanks, that was helpful, didn't

Re: [O] inline source code blocks

2014-03-06 Thread Ilya Shlyakhter
On 3/6/14 9:22 PM, Eric Schulte wrote: How about the following alternative to my previous suggestion, which will eliminate the extra lines. Looks beautiful initially, but leads to some confusing behaviors due to invisible lines. But eliminating extra lines is only important for some