From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Why are src_perl{} immediately executed? Date: Sun, 14 Nov 2010 09:03:03 -0700 Message-ID: <877hgfzydk.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=60366 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHf2x-0003EI-5c for emacs-orgmode@gnu.org; Sun, 14 Nov 2010 11:03:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PHf2s-0004Wo-Vm for emacs-orgmode@gnu.org; Sun, 14 Nov 2010 11:03:14 -0500 Received: from mail-yx0-f169.google.com ([209.85.213.169]:52767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PHf2s-0004Wh-SK for emacs-orgmode@gnu.org; Sun, 14 Nov 2010 11:03:10 -0500 Received: by yxt3 with SMTP id 3so543271yxt.0 for ; Sun, 14 Nov 2010 08:03:10 -0800 (PST) In-Reply-To: (Dov Grobgeld's message of "Sun, 14 Nov 2010 09:27:07 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Dov Grobgeld Cc: emacs-orgmode@gnu.org, Noorul Islam Hi Dov, That is correct, there is no method of highlighting inline code blocks, the begin_src constructs are just for evaluation of inline code. You can customized the `org-babel-default-inline-header-args' to inhibit the execution of inline code blocks on export. Best -- Eric Dov Grobgeld writes: > From the documentation I see now difference between inline and multi-line > behavior. Note that I did not wish to evaluate the code at all but just have > inline syntax highlighting in my html export. Is src_perl{foo()} for > evaluation only and not for source highlighting? > > Thanks, > Dov > > On Sun, Nov 14, 2010 at 04:49, Noorul Islam wrote: > >> On Sun, Nov 14, 2010 at 3:34 AM, Dov Grobgeld >> wrote: >> > From the documentation it seems like a statement such as src_perl{foo()} >> are >> > inline version of the multi line: >> > >> > #+src_perl >> > foo(); >> > #+end_src >> > >> > But when exporting the org file to html I get the question "Evaluate this >> > perl code on your system" for the inline version, but not for the >> multiline >> > version. Is this a bug or did I miss something? >> > >> >> >> You can customize this with the variable org-confirm-babel-evaluate >> >> Thanks and Regards >> Noorul >> > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode