From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] allow klipse export in html Date: Thu, 15 Dec 2016 14:39:06 +0100 Message-ID: <8737hp71mt.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHWFX-0003bj-No for emacs-orgmode@gnu.org; Thu, 15 Dec 2016 08:39:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHWFW-00070A-LC for emacs-orgmode@gnu.org; Thu, 15 Dec 2016 08:39:07 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:60027) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cHWFW-0006zg-FA for emacs-orgmode@gnu.org; Thu, 15 Dec 2016 08:39:06 -0500 In-Reply-To: (Matt Price's message of "Wed, 14 Dec 2016 17:44:54 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Matt Price Cc: bzg@bzg.fr, Yehonathan Sharvit , Org Mode , Rasmus Hello, Matt Price writes: > I'm such a slow coder that this is all I got to in my free moments > today:patch for defcustoms that inserts the necessary code into a src > block. further refinements necessary before it works properly; severla > more would be useful for hte improvements that Bastien suggests. Thank you. Some comments follow. > +(defcustom org-html-klipsify-src nil > + "Set to non-nil if you would like to make source code blocks editable in exported presentation." When non-nil, source code blocks are editable in exported presentation. > + :group 'org-export-html > + :type 'boolean) :version :package-version keywords are missing. > +(defcustom org-html-klipse-css "https://storage.googleapis.com/app.klipse.tech/css/codemirror.css" > + "Location of the codemirror css file for use with klipse." css -> CSS > + :group 'org-export-html > + :type 'string) See above. > +(defcustom org-html-klipse-js "https://storage.googleapis.com/app.klipse.tech/plugin_prod/js/klipse_plugin.min.js" > + "location of the klipse js source code." Location of the klipse javascript source code. > + :group 'org-export-html > + :type 'string) See above. > +(defcustom org-html-klipse-selection-script > + "window.klipse_settings = {selector_eval_html: '.src-html', > + selector_eval_js: '.src-js', > + selector_eval_python_client: '.src-python', > + selector_eval_scheme: '.src-scheme', > + selector: '.src-clojure', > + selector_eval_ruby: '.src-ruby'};" > + "javascript snippet to activate klipse" Javascript snippet to activate klipse. > + :group 'org-export-html > + :type 'string) See above. > + ;; klipse library for live code blocks, if requested > + (if org-html-klipsify-src You shouldn't use `org-html-klipsify-src' directly in the code, but instead "register" it in the back-end and call (plist-get info :html-klipsify-src) See other defcustoms. The new property also needs to be documented in "org.texi", in Publishing directory. Regards, -- Nicolas Goaziou