[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Using double square brackets literally (escaping link conversion
From: |
Charles Philip Chan |
Subject: |
Re: [O] Using double square brackets literally (escaping link conversion) in org-mode |
Date: |
Tue, 4 Sep 2012 07:01:45 -0400 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) |
Giuseppe Pagnoni <address@hidden> writes:
Hi Giuseppe:
> I use org-mode for taking notes and I often need to jot down code
> examples. In the language R, subscription is often done with double
> square brackets (for instance, I can extract the 2nd element of a
> `list' object x with the code: x[[2]]). Now, I haven't been able to
> write such example code within org-mode, without them turning
> automatically into hyperlinks (I am talking about the plain emacs
> interface here, which is what I use most, not about exporting into
> formats such as latex or HTML).
Use a src block. For example:
#+BEGIN_SRC R
bla..bla..
#+END_SRC
Please refer to this section:
http://orgmode.org/manual/Working-With-Source-Code.html#Working-With-Source-Code
in the manual.
Cheers,
Charles
--
"...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and
the Ugly)."
(By Matt Welsh)
pgpKwFq8yH31K.pgp
Description: PGP signature