A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://lists.gnu.org/archive/html/emacs-orgmode/2009-07/msg00288.html below:

[Orgmode] Markup for export question

[Top][All Lists] [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] From: Ulf Stegemann Subject: [Orgmode] Markup for export question Date: Thu, 09 Jul 2009 15:19:58 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)
When writing documentations I often come across expressions like

  doMagic('myVariable')

In an ideal world the HTML code for this after exporting the org file
would look like this:

  <code>doMagic('<var>myVariable</var>')</code>

The purpose is of course to indicate that `doMagic' is a literal
function/method name while `myVariable' is not meant literal and is to
be replaced something more or less sensible.

However, I find that rather hard to achieve and was only able to produce
this with quoted HTML tags.  In order to find a simpler solution I was
fiddling with `org-emphasis-alist' and `org-emphasis-regexp-components'
but to no avail.  Does anybody have an idea how to create that HTML code
from a simple markup in an org file?  BTW: Same applies probably for
LaTeX export but I haven't been playing around with this.

Ulf





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4