From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: make code lines bold in export Date: Wed, 08 Apr 2015 09:45:51 -0400 Message-ID: References: <5525188B.6040308@friendlyvillagers.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfqIr-0001Gv-Fw for emacs-orgmode@gnu.org; Wed, 08 Apr 2015 09:46:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfqIm-0003hO-5z for emacs-orgmode@gnu.org; Wed, 08 Apr 2015 09:46:01 -0400 Received: from mail-qc0-x22b.google.com ([2607:f8b0:400d:c01::22b]:34219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfqIl-0003gv-R1 for emacs-orgmode@gnu.org; Wed, 08 Apr 2015 09:45:56 -0400 Received: by qcyk17 with SMTP id k17so29423372qcy.1 for ; Wed, 08 Apr 2015 06:45:54 -0700 (PDT) In-reply-to: <5525188B.6040308@friendlyvillagers.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: thomas Cc: emacs-orgmode@gnu.org A filter is what I would use. You could get the src block text and replace lines with that comment in them for the output. This post is not exactly that, but it has the idea of how to do it. you would get the text, modify it, and return the new modified text. http://kitchingroup.cheme.cmu.edu/blog/2013/09/30/Attaching-code-blocks-to-a-pdf-file-during-export/ thomas writes: > Hi, > > it would be very nice if i was able to highlight (i.e. make bold) > certain lines in an exported code, say ODT. > > Something like this: > > #+BEGIN_SRC java > public class HelloActivity extends Activity { > /** Called when the activity is first created */ > @Override > public void onCreate(Bundle savedInstanceState) > { > super.onCreate(savedInstanceState); > setContentView(R.layout.main); // *MAKE THIS LINE BOLD* > } > } > #+END_SRC > > Is there an - easy - way to do this? My first guess: I need to write an > export filter ... what would you think? > > Thanks, > thomas -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu