From mboxrd@z Thu Jan 1 00:00:00 1970 From: Phil Regier Subject: Re: Is there an environment for Org syntax? Date: Fri, 14 Mar 2014 17:13:36 -0500 (CDT) Message-ID: <1187822931.636304.1394835216554.JavaMail.zimbra@ittc.ku.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOaMQ-0006UA-LJ for emacs-orgmode@gnu.org; Fri, 14 Mar 2014 18:13:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOaMK-00060P-04 for emacs-orgmode@gnu.org; Fri, 14 Mar 2014 18:13:50 -0400 Received: from [129.237.125.220] (port=56183 helo=stephens.ittc.ku.edu) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOaMJ-0005zt-RT for emacs-orgmode@gnu.org; Fri, 14 Mar 2014 18:13:43 -0400 In-Reply-To: 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: Fletcher Charest Cc: emacs-orgmode@gnu.org I had thought that '#+begin_src org :exports code' would do just this, though I believe you have to then begin each line with a comma inside the block. For me, the following: #+begin_src org :exports code ,#+begin_src org :exports code ,#+end_src #+end_src produces Org code via the HTML and Latex export backends. I think there are syntax highlighting export extensions in the wild (just search the web for something like 'org export syntax highlighting' to see a diverse collection of proposed solutions; Pygments appears to be a common theme, though I know nothing about it), but AFAIK they are not distributed with Org at this time. Does that at least address the first part of your inquiry? Sorry I couldn't offer anything actionable for the second; maybe someone else can pick up where I left off. Phil ----- Original Message ----- From: "Fletcher Charest" To: emacs-orgmode@gnu.org Sent: Friday, March 14, 2014 4:41:12 PM Subject: [O] Is there an environment for Org syntax? Dear all, I am currently writing a practical tutorial about Org for absolute beginners. In the end, I would like to export it in multiple formats, HTML for sure, but maybe LaTeX too (I am, of course, writing it with org-mode). I am not aware of a functionality, or hack, which would allow me to include Org syntax in the document, without it being taken into account by Org itself and the exporter as being part of the document structure. Instead, I'd like it to be exported as it appears in my Emacs Org file, including colors, etc. I hope I am explaining this clearly. Is it possible? Thank you very much for you help, FC