From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Tykhonov Subject: Custom babel execute command with existing syntax highlighting Date: Fri, 21 Mar 2014 14:37:40 +0200 Message-ID: <87pplf682z.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57787) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQyiK-0000rZ-4a for emacs-orgmode@gnu.org; Fri, 21 Mar 2014 08:38:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQyiB-000849-OE for emacs-orgmode@gnu.org; Fri, 21 Mar 2014 08:38:20 -0400 Received: from mail-ee0-x22d.google.com ([2a00:1450:4013:c00::22d]:64473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQyiB-000843-HZ for emacs-orgmode@gnu.org; Fri, 21 Mar 2014 08:38:11 -0400 Received: by mail-ee0-f45.google.com with SMTP id d17so1775169eek.32 for ; Fri, 21 Mar 2014 05:38:10 -0700 (PDT) Received: from demi ([193.84.22.38]) by mx.google.com with ESMTPSA id m42sm11321674eex.21.2014.03.21.05.38.08 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 21 Mar 2014 05:38:09 -0700 (PDT) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi all! I have such block: #+BEGIN_SRC my-python import sys sys.platform #+END_SRC I want it to be with syntax highlighting, so it will looks like (in a org-file) exactly as: #+BEGIN_SRC python import sys sys.platform #+END_SRC (of course the value of org-src-fontify-natively is t). but in the same time I would like that that block will be executed by means of custom org-babel-execute:my-python command. How can I achieve that? Andrey