From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: question about org-coderef-label-format and HTML export Date: Wed, 07 Dec 2016 00:29:50 +0100 Message-ID: <87r35kiqkx.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEPBI-0001E8-Ck for emacs-orgmode@gnu.org; Tue, 06 Dec 2016 18:29:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEPBE-00080Z-Ea for emacs-orgmode@gnu.org; Tue, 06 Dec 2016 18:29:52 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:38315) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cEPBE-00080K-87 for emacs-orgmode@gnu.org; Tue, 06 Dec 2016 18:29:48 -0500 In-Reply-To: (dmg@turingmachine.org's message of "Mon, 5 Dec 2016 11:55:13 -0800") 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" To: dmg Cc: emacs-orgmode Hello, dmg writes: > I was playing with org-coderef-label-format to reference lines of code > in blocks. > > I created a small example that overrides the default value: > > #+BEGIN_SRC C++ :main no :flags -std=c++14 -Wall --pedantic -Werror > :results output :exports both -r -l "//(ref:%s)" +n Switches are to be located before Babel parameters: #+begin_src C++ -r -l "//(ref:%s)" +n :main no .. Regards, -- Nicolas Goaziou