At times, especially when taking notes, a literate org file can contain one-line source blocks, as follows:
* Taking notes
:PROPERTIES:
:tangle: whatever.pl
:comments: org
:END:
Perl set command
#+BEGIN_SRC perl
set $random_var=1;
#+END_SRC
Perl unset command (just making it up... :P)
#+BEGIN_SRC perl
unset $random_var;
#+END_SRC
For such applications, the #+BEGIN_SRC...#+END_SRC
pragma looks to be an overkill. Easy templates reduce the typing, but the org doc still looks a bit overflowing.
Is there an easy way to do this? I know that a line starting with a :
gets to verbatim text automatically. Is there a way to do something similar with org-tangle?
I am looking for a solution something like this, or at least close to these lines, while still retaining the source highlighting and tangling facilities for parent mode:
* Taking notes
:PROPERTIES:
:tangle: whatever.pl
:comments: org
:mode: perl
:END:
Perl set command
: set $random_var=1;
Perl unset command (just making it up... :P)
: unset $random_var;
It's cleaner, easy to look at and, IMHO, a bit less noisy.
Any suggestions would be appreciated. Thanks in advance!