From mboxrd@z Thu Jan 1 00:00:00 1970 From: suvayu ali Subject: Re: Source blocks for tiny snippets Date: Mon, 24 Oct 2011 11:58:46 +0200 Message-ID: References: <87zkgtypob.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIHJN-0002Ke-N5 for emacs-orgmode@gnu.org; Mon, 24 Oct 2011 05:59:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIHJG-0005Mn-Ag for emacs-orgmode@gnu.org; Mon, 24 Oct 2011 05:59:11 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:45885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIHJF-0005MV-PZ for emacs-orgmode@gnu.org; Mon, 24 Oct 2011 05:59:10 -0400 Received: by bkbzu5 with SMTP id zu5so9123153bkb.0 for ; Mon, 24 Oct 2011 02:59:07 -0700 (PDT) In-Reply-To: <87zkgtypob.fsf@gmail.com> 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: Eric Schulte Cc: org-mode mailing list Hi Eric, On Sat, Oct 22, 2011 at 18:08, Eric Schulte wrote: > suvayu ali writes: > >> 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 =3D nEvts >> To run the generator only, set the property below. >> : Gauss().Phases =3D ["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. >> > > Currently there is no more concise way to specify code blocks other than > the normal code block format. =C2=A0Although it doesn't currently exist m= aybe > an option could be added to hide the #+BEGIN/END_SRC lines so that they > don't appear in the buffer. =C2=A0That combined with a helper for specify= ing > code blocks (I use yasnippets for this) should serve. > Thanks for the confirmation. I can live with example lines for now. :) --=20 Suvayu Open source is the future. It sets us free.