From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: How to insert apostrophe (') into code and verbatim text? Date: Thu, 4 Feb 2010 18:31:02 +0100 Message-ID: <1B42A8EA-259C-4172-AE90-37FF74910238@gmail.com> References: <20100204114838.330cbb08@yahoo.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nd6Y4-0006QC-CL for emacs-orgmode@gnu.org; Thu, 04 Feb 2010 13:35:28 -0500 Received: from [199.232.76.173] (port=46541 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nd6Y3-0006Q4-0E for emacs-orgmode@gnu.org; Thu, 04 Feb 2010 13:35:27 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nd6Y2-0006O2-Ag for emacs-orgmode@gnu.org; Thu, 04 Feb 2010 13:35:26 -0500 Received: from mail-ew0-f228.google.com ([209.85.219.228]:44302) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nd6Y1-0006Nu-Th for emacs-orgmode@gnu.org; Thu, 04 Feb 2010 13:35:26 -0500 Received: by ewy28 with SMTP id 28so3067925ewy.8 for ; Thu, 04 Feb 2010 10:35:24 -0800 (PST) In-Reply-To: <20100204114838.330cbb08@yahoo.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Uriel Avalos Cc: emacs-orgmode@gnu.org On Feb 4, 2010, at 5:48 PM, Uriel Avalos wrote: > Here's an easy one for the guru's, why does an apostrophe at the > beginning of a =code= not work? When I export the following text to > HTML, the "'life" variable isn't set as code (and the = symbols show > up): > > Select ='life= for the x variable. > > If I escape the apostrophe, I course get back the escape character > in the HTML: > > Select =\'life= for the x variable. That is because '=life=' was considered more likely than what you are using. Org-mode is using a heuristic method to figure out what is a normal equal sign, and what introduces code. Feel free to play with the variable `org-emphasis-regexp-components' and see if you can come up with something that works for you. - Carsten