From mboxrd@z Thu Jan 1 00:00:00 1970 From: suvayu ali Subject: Source blocks for tiny snippets Date: Sat, 22 Oct 2011 03:10:26 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHQ6s-0000IY-Ai for emacs-orgmode@gnu.org; Fri, 21 Oct 2011 21:10:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHQ6r-0001vu-81 for emacs-orgmode@gnu.org; Fri, 21 Oct 2011 21:10:50 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:50818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHQ6q-0001vj-Ul for emacs-orgmode@gnu.org; Fri, 21 Oct 2011 21:10:49 -0400 Received: by bkbzu5 with SMTP id zu5so6279988bkb.0 for ; Fri, 21 Oct 2011 18:10:47 -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: org-mode mailing list Hi everyone, I was wondering what people do when they need to put a few (1 or 2) lines of code snippets in org files? I like the syntax highlighting one gets in an org buffer and in HTML export with code blocks. Is there some work around other than have code blocks for every line I want to include? As an example consider this paragraph: Edit job options for number of events and other configurations : $ $EDITOR $GAUSSOPTS/.py The number of events in a job can be customised with the option : LHCbApp().EvtMax = nEvts To run the generator only, set the property below. : Gauss().Phases = ["Generator"] To turn on full monitoring and dump an ntuple to a root file, include the opts files as below. It can be customised further to suit the needs. : importOptions('$GAUSSOPTS/.opts') In the above example you have a mix of bash and python snippets. Any thought? -- Suvayu Open source is the future. It sets us free.