ob-processing.el: Support for Processing language
commit0d21d8d0eaec24adae9f0128392459b10d71b77e
authorJarmo Hurri <jarmo.hurri@iki.fi>
Tue, 14 Apr 2015 13:51:15 +0000 (14 16:51 +0300)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 25 Apr 2015 08:01:21 +0000 (25 10:01 +0200)
treea0fe189abf83c3139f65fdb40ad08e4616d4924b
parent63a315384265a8be7857f33cdad0b2ef0b32637f
ob-processing.el: Support for Processing language

* lisp/ob-processing.el: New file.

* doc/org.texi (Languages): Signal new language.

This library implements necessary functions for implementing editing
of Processing code blocks, viewing the resulting sketches in an
external viewer, and HTML export of the sketches.

Editing Processing blocks requires processing2-emacs mode. Viewing
Processing blocks embedded in Org buffer in an external viewer also
requires processing2-emacs. This viewing is bound to C-c C-v C-k and
produces no results in Org buffer. HTML export of the results of a
Processing block is also supported, assuming that the processing.js
module is available: the sketch is then drawn by the browser when the
HTML page is viewed. This drawing is implemented by embedding the
Processing code in a script using the processing.js module. The user
is responsible for making sure that processing.js is available in the
correct location.

Console output from a Processing block produced e.g. by println() is
shown in the Processing compilation window when the code is executed
in Org buffer, and in text area (console) of the browser when the code
is embedded in HTML.
doc/org.texi
lisp/ob-processing.el [new file with mode: 0644]