Different messages for :results output and value modes.
[org-mode.git] / test-tangle.org
blobb8e96599694e32bc0214d78ac36011a8bc6f55a9
1 #+TITLE: Testing Org-Babel Tangling
2 #+OPTIONS: toc:2 ^:nil
4 * Some file
6 Some text here
8 #+BEGIN_SRC sh
9 echo "line 1"
10 echo "line 2"
11 #+END_SRC
13 more text
15 #+srcname: ruby-no-session
16 #+begin_src ruby 
17   def hello
18     puts "hello world"
19   end
20 #+end_src
23 #+srcname: first-ruby-block
24 #+begin_src ruby :session special
25 :block_the_first
26 #+end_src
29 ** Some subsection
31 #+BEGIN_SRC sh
32 echo "line 3"
33 echo "line 4"
34 #+END_SRC
36 blah blah blah
38 #+BEGIN_EXAMPLE
39 text line 1
40 text line 2
41 text line 3
42 #+END_EXAMPLE
44 more stuff
46 #+srcname: i-have-a-name
47 #+begin_src sh 
48 echo "I have a name"
49 #+end_src
52 foo foo bar baz
54 #+BEGIN_SRC sh
55 echo "line 5"
56 echo "line 6"
57 #+END_SRC
60 ** Ruby blocks
62 #+srcname: another-ruby-block
63 #+begin_src ruby :session special
64 holder = 98
65 #+end_src
68 #+srcname: ruby-plus-2
69 #+begin_src ruby :session special
70 def plus_two(n)
71   n + 2
72 end
73 #+end_src
75 #+srcname: final-ruby
76 #+begin_src ruby :session special
77 plus_two(holder)
78 #+end_src