* fontification of blocks inside blocks
@ 2014-02-27 7:38 Alan Schmitt
2014-03-13 15:20 ` Bastien
0 siblings, 1 reply; 3+ messages in thread
From: Alan Schmitt @ 2014-02-27 7:38 UTC (permalink / raw)
To: emacs-orgmode
Hello,
I've just had to write an org block inside another org block, which
looks like this:
#+attr_latex: :options {0.5\textwidth}
#+begin_column
#+begin_src ocaml
let o1 = object
method m = 0
method p = "foo"
end;;
#+end_src
#+end_column
Unfortunately when I do so I lose the nice fontification of the ocaml
code inside the inner block. Is there a way to get it back?
Now for why I'm doing this and not using the usual headline with a
"column" property: I want to put a vertical bar between the columns, so
I need a "\vrule" after the first column is closed. Using headlines does
not let me write anything between the columns.
Thanks,
Alan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: fontification of blocks inside blocks
2014-02-27 7:38 fontification of blocks inside blocks Alan Schmitt
@ 2014-03-13 15:20 ` Bastien
2014-03-14 12:09 ` Alan Schmitt
0 siblings, 1 reply; 3+ messages in thread
From: Bastien @ 2014-03-13 15:20 UTC (permalink / raw)
To: Alan Schmitt; +Cc: emacs-orgmode
Hi Alan,
Alan Schmitt <alan.schmitt@polytechnique.org> writes:
> I've just had to write an org block inside another org block, which
> looks like this:
>
> #+attr_latex: :options {0.5\textwidth}
> #+begin_column
> #+begin_src ocaml
> let o1 = object
> method m = 0
> method p = "foo"
> end;;
> #+end_src
> #+end_column
>
> Unfortunately when I do so I lose the nice fontification of the ocaml
> code inside the inner block. Is there a way to get it back?
Well, that's a long awaited ... "no".
I guess it would somehow make sense, but the fontification engine is
complex enough not to try to implement such nested fontification.
But maybe some Emacs angel can pass by and implement this.
--
Bastien
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: fontification of blocks inside blocks
2014-03-13 15:20 ` Bastien
@ 2014-03-14 12:09 ` Alan Schmitt
0 siblings, 0 replies; 3+ messages in thread
From: Alan Schmitt @ 2014-03-14 12:09 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
Bastien <bzg@gnu.org> writes:
> Hi Alan,
>
> Alan Schmitt <alan.schmitt@polytechnique.org> writes:
>
>> I've just had to write an org block inside another org block, which
>> looks like this:
>>
>> #+attr_latex: :options {0.5\textwidth}
>> #+begin_column
>> #+begin_src ocaml
>> let o1 = object
>> method m = 0
>> method p = "foo"
>> end;;
>> #+end_src
>> #+end_column
>>
>> Unfortunately when I do so I lose the nice fontification of the ocaml
>> code inside the inner block. Is there a way to get it back?
>
> Well, that's a long awaited ... "no".
>
> I guess it would somehow make sense, but the fontification engine is
> complex enough not to try to implement such nested fontification.
> But maybe some Emacs angel can pass by and implement this.
I can definitely live with this ;-) Thanks for the answer.
Alan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-14 12:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-27 7:38 fontification of blocks inside blocks Alan Schmitt
2014-03-13 15:20 ` Bastien
2014-03-14 12:09 ` Alan Schmitt
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.