From: Joost Kremers <joostkremers@fastmail.fm>
To: Eric S Fraga <e.fraga@ucl.ac.uk>
Cc: emacs-orgmode@gnu.org
Subject: Font lock in inner blocks [was: Re: Differentiate source blocks in export?]
Date: Wed, 25 Nov 2020 14:24:33 +0100 [thread overview]
Message-ID: <87lfepwovi.fsf@fastmail.fm> (raw)
In-Reply-To: <875z5teqrq.fsf@ucl.ac.uk>
On Wed, Nov 25 2020, Eric S Fraga wrote:
> On Wednesday, 25 Nov 2020 at 09:37, Joost Kremers wrote:
>> I like this solution for the "Org-ness" of the syntax, and yes, =C-c
>> '= works, but font lock is gone...
>
> Yes, font lock is gone unfortunately but I am not sure why that
> is. Something for somebody who understands the syntax highlighting code
> to investigate?
I guess font lock is based on the outer block, which in this case doesn't
correspond to any major mode, so there is no font lock. Or at least no
major-mode-based font lock. Org markup such as for =code= *is* font locked.
One could argue that this isn't entirely consistent with the fact that
=org-edit-special= *does* recognise the inner code block. It certainly would be
nice if font lock did, as well.
--
Joost Kremers
Life has its moments
next prev parent reply other threads:[~2020-11-25 13:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-24 12:14 Differentiate source blocks in export? Joost Kremers
2020-11-24 16:00 ` John Kitchin
2020-11-24 16:07 ` Marvin ‘quintus’ Gülker
2020-11-24 16:15 ` John Kitchin
2020-11-24 16:22 ` Diego Zamboni
2020-11-24 17:41 ` Eric S Fraga
2020-11-24 22:02 ` Joost Kremers
2020-11-25 8:02 ` Eric S Fraga
2020-11-25 8:37 ` Joost Kremers
2020-11-25 9:20 ` Eric S Fraga
2020-11-25 13:24 ` Joost Kremers [this message]
2020-11-24 21:55 ` Joost Kremers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lfepwovi.fsf@fastmail.fm \
--to=joostkremers@fastmail.fm \
--cc=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).