From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id wAPNCjDWlmXoWgEAkFu2QA (envelope-from ) for ; Thu, 04 Jan 2024 17:00:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id GKweBDDWlmVzeAEAe85BDQ (envelope-from ) for ; Thu, 04 Jan 2024 17:00:48 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=r+yVzqME; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1704384047; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=JBpqgBiCpIJzxMgwSTDP4cTZ5wVMw3MuRgtSe5JERp8=; b=YwUMFXzCd6cLEgRQJHyh+LOCRB+lrqbcxO34d/55do8CXPqiY9tcBCb6B7NO/l5VlhxFJp eDPtihny3SFHoZmxNHVxPFz8Xy5EzhBodj4mfM4P+mEenIFmQQG/knU3iHqXPqtvWErV9l zCBVmPO+JPCCFwfDJ/0HkkemtXezKwBu3CurRDFnwpZXVf8pw0PazHGhrR3/Va5I6F4r65 F77DnwvJ9ACiNmxyAiWOetgXulp4npOpcPh9iZ0Q2783aciwabs/Ro7yYATjnbWbQ884iq ZFnZiB6MhfsUWo0G28CmPRNxFtc9yEx2Q0uRbQrW1Vecr8Y74n39RQg65hLR5A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=r+yVzqME; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704384047; a=rsa-sha256; cv=none; b=dY/+GXKrLFXpa6K/dCsXhFXD1cokYZJFzhlnsNYh6d3FwOBun7B4xTatJaWgKswQqh+Y1G QxjDPGarNSkNlkt2b2Z1N7pVBFLNW7XNf2UHEGuYKTct5mvtSxrRsqyRvVkei/UqDt3H0l dkniygMBhWFYWSKGmKHXIQH96TP5iLz1T+P93/ZMDHSpz/QuC08hmhKagn8vvk3xW4o+KA SsUf7O+RtI0/EkNlqf4IbO9R6uDv2ZhZeVyrAq3PCpShDqazes2+C+OKOs/k1ocyYNMn3f 7u31CXRw2JwELVa/j2ndbetQx8Mh02rzAczBxEtgn6jYf3s4qzkHzzXZTG/+aA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D8F813FDA4 for ; Thu, 4 Jan 2024 17:00:47 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rLQ8q-00019N-07; Thu, 04 Jan 2024 11:00:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rLQ8p-00019D-2f for emacs-orgmode@gnu.org; Thu, 04 Jan 2024 11:00:19 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rLQ8m-0000zG-Vs for emacs-orgmode@gnu.org; Thu, 04 Jan 2024 11:00:18 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 6A949240104 for ; Thu, 4 Jan 2024 17:00:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1704384015; bh=JBpqgBiCpIJzxMgwSTDP4cTZ5wVMw3MuRgtSe5JERp8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=r+yVzqMEne9OX1iGd9lHK18YOUDqm9xp+Vzzgkh+comR4Cr2aiuJDcmAPWeBNvgcx mqLvbbhozlqoN8yiv0T7HIDQruAjNHDhx02f8vwIRdmrCcwd8fwihpEMMdLS5+axuU v7Br1rNQBRFr3GsTyKpQ96xNc72gyWe3F+NuVSFgVeMePaPhu+/gZaaNupQajqUFfH 9dxZKlwXZ3OjZ1eda2CPib/GTeh7aVx0FKwOpinklVNt8Yn6RcrojWf9g0U7qs66C0 mbIg7smmXdmYTwYlG6dKoaZxaW6e2Gb+wYSPsUALN8JYeXHcnzNA9r97Wj2FLITyTN kZaTZmAQXi0Lg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4T5WWf5mRZz6tsg; Thu, 4 Jan 2024 17:00:14 +0100 (CET) From: Ihor Radchenko To: Huan Nguyen Cc: emacs-orgmode@gnu.org Subject: Re: [QUESTION] Fontlocking for source block implementation In-Reply-To: <709EDD30-2BFD-4F7F-BBBF-7B6850E7A370@gmail.com> References: <709EDD30-2BFD-4F7F-BBBF-7B6850E7A370@gmail.com> Date: Thu, 04 Jan 2024 16:03:27 +0000 Message-ID: <87r0ixhyr4.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -4.74 X-Spam-Score: -4.74 X-Migadu-Queue-Id: D8F813FDA4 X-TUID: 57kbORTxCcUu Huan Nguyen writes: > I=E2=80=99d like to know how the fontlocking is implemented for the sourc= e blocks (#begin_src lang #end_src). Can someone give me some functions/fil= es I can take a look at. Check out `org-src-font-lock-fontify-block'. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at