* showing orgmode source in orgmode
@ 2012-08-31 4:23 Alexandre Russel
2012-08-31 4:39 ` Charles Philip Chan
0 siblings, 1 reply; 8+ messages in thread
From: Alexandre Russel @ 2012-08-31 4:23 UTC (permalink / raw)
To: emacs-orgmode
Hi,
I couldn't find how to show orgmode source in orgmode, I've tried the
obvious(ly stupid):
#+begin_src orgmode
#+begin_src foobar
#+end_src
#+end_src
but when exporting it shows only
#+begin_src foobar
when I would have like:
#+begin_src foobar
#+end_src
any ideas ?
alex
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: showing orgmode source in orgmode
2012-08-31 4:23 showing orgmode source in orgmode Alexandre Russel
@ 2012-08-31 4:39 ` Charles Philip Chan
2012-08-31 4:44 ` Charles Philip Chan
0 siblings, 1 reply; 8+ messages in thread
From: Charles Philip Chan @ 2012-08-31 4:39 UTC (permalink / raw)
To: Org-mode
[-- Attachment #1: Type: text/plain, Size: 561 bytes --]
Alexandre Russel <alexandre@russel.fr> writes:
Hi Alexandre:
> I couldn't find how to show orgmode source in orgmode, I've tried the
> obvious(ly stupid):
Use:
,----
| #+begin_example
| #+end_example
`----
> #+begin_src orgmode
> #+begin_src foobar
> #+end_src
"#+begin_src" only works with certain programming languages. Please
refer to section 14 of the manual.
Cheers,
Charles
--
"Computers may be stupid, but they're always obedient. Well, almost always."
-- Larry Wall (Open Sources, 1999 O'Reilly and Associates)
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: showing orgmode source in orgmode
2012-08-31 4:39 ` Charles Philip Chan
@ 2012-08-31 4:44 ` Charles Philip Chan
2012-08-31 4:58 ` Alexandre Russel
0 siblings, 1 reply; 8+ messages in thread
From: Charles Philip Chan @ 2012-08-31 4:44 UTC (permalink / raw)
To: Org-mode
[-- Attachment #1: Type: text/plain, Size: 367 bytes --]
Charles Philip Chan <cpchan@bell.net> writes:
Hi Alexandre:
> "#+begin_src" only works with certain programming languages. Please
> refer to section 14 of the manual.
Sorry, it seems that org-mode is supported, try:
,----
| #+begin_src org
| #+end_src
`----
Cheers,
Charles
--
Dijkstra probably hates me
(Linus Torvalds, in kernel/sched.c)
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: showing orgmode source in orgmode
2012-08-31 4:44 ` Charles Philip Chan
@ 2012-08-31 4:58 ` Alexandre Russel
2012-08-31 5:59 ` Charles Philip Chan
2012-08-31 6:12 ` Jeremiah Dodds
0 siblings, 2 replies; 8+ messages in thread
From: Alexandre Russel @ 2012-08-31 4:58 UTC (permalink / raw)
To: Charles Philip Chan; +Cc: Org-mode
On Fri, Aug 31, 2012 at 6:44 AM, Charles Philip Chan <cpchan@bell.net> wrote:
> Charles Philip Chan <cpchan@bell.net> writes:
>
> Hi Alexandre:
>
>> "#+begin_src" only works with certain programming languages. Please
>> refer to section 14 of the manual.
>
> Sorry, it seems that org-mode is supported, try:
>
> ,----
> | #+begin_src org
> | #+end_src
> `----
#+begin_example org
#+begin_src java
#+end_src
#+end_src
exports without color:
#+begin_src java
#+end_src
#+begin_src org
#+begin_src java
#+end_src
#+end_src
exports with color but only:
#+begin_src java
Alex
>
> Cheers,
> Charles
>
> --
> Dijkstra probably hates me
> (Linus Torvalds, in kernel/sched.c)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: showing orgmode source in orgmode
2012-08-31 4:58 ` Alexandre Russel
@ 2012-08-31 5:59 ` Charles Philip Chan
2012-08-31 6:08 ` Bastien
2012-08-31 6:12 ` Jeremiah Dodds
1 sibling, 1 reply; 8+ messages in thread
From: Charles Philip Chan @ 2012-08-31 5:59 UTC (permalink / raw)
To: Org-mode; +Cc: Bastien
[-- Attachment #1: Type: text/plain, Size: 642 bytes --]
Alexandre Russel <alexandre@russel.fr> writes:
Hi Alexandre:
> #+begin_example org
> #+begin_src java
> #+end_src
I have no idea what you are trying to do here. However, I have just
noticed that wrapping org-mode code in any type of block doesn't export
correctly- the block code are just ignored and the org-mode source is
treated as part of the document. I have tried:
,----
| #+BEGIN EXAMPLE
| #+END_EXAMPLE
`----
,----
| #+BEGIN_SRC org
| #+END_SRC
`----
I have cc'ed Bastien.
Cheers,
Charles
--
"...and scantily clad females, of course. Who cares if it's below zero
outside"
(By Linus Torvalds)
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: showing orgmode source in orgmode
2012-08-31 5:59 ` Charles Philip Chan
@ 2012-08-31 6:08 ` Bastien
2012-08-31 6:24 ` Charles Philip Chan
0 siblings, 1 reply; 8+ messages in thread
From: Bastien @ 2012-08-31 6:08 UTC (permalink / raw)
To: Charles Philip Chan; +Cc: Org-mode
Charles Philip Chan <cpchan@bell.net> writes:
> I have cc'ed Bastien.
Org src blocks are special.
Try this at the beginning of a line:
<s TAB org C-n C-c ' [Add some org content] C-c '
You should then have something like
#+BEGIN_SRC org
,* A headline
,blabla
#+END_SRC
The commas is needed to escape this Org source from the
normal handling of the buffer.
They can also be inserted by just pressing TAB in an Org
src block.
HTH,
--
Bastien
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: showing orgmode source in orgmode
2012-08-31 4:58 ` Alexandre Russel
2012-08-31 5:59 ` Charles Philip Chan
@ 2012-08-31 6:12 ` Jeremiah Dodds
1 sibling, 0 replies; 8+ messages in thread
From: Jeremiah Dodds @ 2012-08-31 6:12 UTC (permalink / raw)
To: emacs-orgmode
Alexandre Russel <alexandre@russel.fr> writes:
> On Fri, Aug 31, 2012 at 6:44 AM, Charles Philip Chan <cpchan@bell.net> wrote:
> #+begin_example org
> #+begin_src java
> #+end_src
> #+end_src
> exports without color:
> #+begin_src java
> #+end_src
> #+begin_src org
> #+begin_src java
> #+end_src
> #+end_src
> exports with color but only:
> #+begin_src java
>
> Alex
>
Shouldn't that be '#+begin_src org', not '#+begin_example org' ?
--
Jeremiah Dodds
blog : http://jdodds.github.com
github : https://github.com/jdodds
freenode : exhortatory
twitter : kaens
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: showing orgmode source in orgmode
2012-08-31 6:08 ` Bastien
@ 2012-08-31 6:24 ` Charles Philip Chan
0 siblings, 0 replies; 8+ messages in thread
From: Charles Philip Chan @ 2012-08-31 6:24 UTC (permalink / raw)
To: Org-mode
[-- Attachment #1: Type: text/plain, Size: 266 bytes --]
Bastien <bzg@altern.org> writes:
Hi Bastien:
> Org src blocks are special.
> ...
Thanks for the info.
Cheers,
Charles
--
"Even more amazing was the realization that God has Internet access. I
wonder if He has a full newsfeed?"
(By Matt Welsh)
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-08-31 6:24 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-31 4:23 showing orgmode source in orgmode Alexandre Russel
2012-08-31 4:39 ` Charles Philip Chan
2012-08-31 4:44 ` Charles Philip Chan
2012-08-31 4:58 ` Alexandre Russel
2012-08-31 5:59 ` Charles Philip Chan
2012-08-31 6:08 ` Bastien
2012-08-31 6:24 ` Charles Philip Chan
2012-08-31 6:12 ` Jeremiah Dodds
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.