On 2019-10-15 at 13:04 +02, Jarmo Hurri <jarmo.hu...@iki.fi> wrote... > JShell is a pretty nifty tool for exploring and demonstrating basic Java > features. Has anyone happened to write support for it in Babel?
You can start working with it even without official Babel support: #+BEGIN_SRC bash :results verbatim jshell int a[] = {0,1,3,5,8} a a[3] = 42 a "" #+END_SRC #+RESULTS: #+begin_example | Welcome to JShell -- Version 11.0.4 | For an introduction type: /help intro jshell> int a[] = {0,1,3,5,8} a ==> int[5] { 0, 1, 3, 5, 8 } jshell> a a ==> int[5] { 0, 1, 3, 5, 8 } jshell> a[3] = 42 $3 ==> 42 jshell> a a ==> int[5] { 0, 1, 3, 42, 8 } jshell> jshell> "" #+end_example The last line doesn't P (from REPL) until I added the "". You can probably find a more elegant solution using :post. -k.