all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [QUESTION] Fontlocking for source block implementation
@ 2024-01-01 14:50 Huan Nguyen
  2024-01-04 16:03 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Huan Nguyen @ 2024-01-01 14:50 UTC (permalink / raw)
  To: emacs-orgmode

I’d like to know how the fontlocking is implemented for the source blocks (#begin_src lang #end_src). Can someone give me some functions/files I can take a look at.

For developing a markup based language mode. A colleague kinda has it but it applies the fontlocking to the entire buffer, overwriting the mode’s fontlocking.

Best regards
Nguyen Thieu Huan

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [QUESTION] Fontlocking for source block implementation
  2024-01-01 14:50 [QUESTION] Fontlocking for source block implementation Huan Nguyen
@ 2024-01-04 16:03 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2024-01-04 16:03 UTC (permalink / raw)
  To: Huan Nguyen; +Cc: emacs-orgmode

Huan Nguyen <nguyenthieuhuan@gmail.com> writes:

> I’d like to know how the fontlocking is implemented for the source blocks (#begin_src lang #end_src). Can someone give me some functions/files I can take a look at.

Check out `org-src-font-lock-fontify-block'.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-04 16:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-01 14:50 [QUESTION] Fontlocking for source block implementation Huan Nguyen
2024-01-04 16:03 ` Ihor Radchenko

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.