From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?RnJlZHJpayDDlmhyc3Ryw7Zt?= Newsgroups: gmane.emacs.help Subject: Question about syntax coloring using an external program Date: Sun, 15 Oct 2023 16:01:22 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8366"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 15 16:02:42 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qs1hZ-00021i-Q0 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 15 Oct 2023 16:02:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qs1h0-0000Tw-Hc; Sun, 15 Oct 2023 10:02:06 -0400 Original-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 1qs1gx-0000Tb-6F for help-gnu-emacs@gnu.org; Sun, 15 Oct 2023 10:02:03 -0400 Original-Received: from mail-io1-xd2a.google.com ([2607:f8b0:4864:20::d2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qs1gv-0007bN-J7 for help-gnu-emacs@gnu.org; Sun, 15 Oct 2023 10:02:02 -0400 Original-Received: by mail-io1-xd2a.google.com with SMTP id ca18e2360f4ac-77acb04309dso149175439f.2 for ; Sun, 15 Oct 2023 07:01:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697378508; x=1697983308; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=MnzxwEOqQf1SMuv3c+jETcXOZU+Q9YuYiJ9y70mJDfk=; b=ffe4TJj4zeVvWtFkcYleaQ9sHPHiygM/D8Uut1oq79Z1bdxNpfy0fmONQlKK+AqXOH 0/LGlhCtT+t4Kvi4ARGUlsokc0D0H0KCAoruPlqRocZK7Z9O+nnc8AOMBDD+HyYY0KKe WBVtJ1MHPECbAB0f7JKzyAyJ/av3uzuoJuvAHXT9GGwnITC0kOSy0VSV2JX6L1lYU24d gclugng6OoDKcb0gdgFMqz1KT3WJUuxjctfe+awUmy7ed+s5M/fjJZhw74KBujDP6TQT jYwE/1wY0JhiDALS4E+YtF0JuDVi0RKMYbSGGsx/QvKQaTUCXN85aUuSDWeLkLylNJIm RuSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697378508; x=1697983308; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=MnzxwEOqQf1SMuv3c+jETcXOZU+Q9YuYiJ9y70mJDfk=; b=WzbBrKKT1INI8K85imLvzHPH3aOl+rY/kmUmOHJzOCgVG7U/I3uHqk2bWyGLMq0kgw +HT3WR8HEhtimJT36o3Q9GSU8ZYDaHrnnb8DLbZtajjNcDmOJmL6q1Md7KEJyPpVe9pq wk+MUpUd0QXFyKyNI8aCxREJWWZ+h1PDKUh/bznwKCHDoKbDvHFBZmTgrxxyz1ot1tqD xocvO+LVAGylEzVDMUQlgzF1aG4rIxMUHmm535bcDW3LXJLtmpkhWzCHsV5dhVQOrVF5 Vyccltf8gnKTGG/qSHLms/Zoqe0BiWZb5moOOpe85C8LuaT5iTZhnBsbJoTUE8Me5ny7 p2iA== X-Gm-Message-State: AOJu0Yx/KpsiPJsnzZugFFPV7UJut6EXA+LyYeGw16qrHicjff8Kt9m6 wRzZXaKDuh5XXkoI5v+OX03BfFpGOqbk/ufOxoO5RvjUbzg= X-Google-Smtp-Source: AGHT+IGGtO3ASExeJ6G9xAboNnPX1M1/CjJvrDqs4ze+J1e8FJTtb/O/TCaCoCAQJFoVATGiAOfrOlOnyJus787Ts2w= X-Received: by 2002:a05:6602:52:b0:790:9728:4014 with SMTP id z18-20020a056602005200b0079097284014mr40207924ioz.11.1697378508407; Sun, 15 Oct 2023 07:01:48 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::d2a; envelope-from=oehrstroem@gmail.com; helo=mail-io1-xd2a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145286 Archived-At: I would like to invoke an external program to do syntax coloring and formatting of the source inside an emacs buffer. I have created an elisp solution using font-lock mode an regexes, but I would like a 100% correct coloring solution. It suppose it could be implemented in pure elisp, but for the moment I need to use an external program to do this. The external program can annotate the source with tags that probably can be used by emacs to color the source. However I am at a loss how to actually implement such a round trip in emacs. I would greatly appreciate any pointers to similar existing solutions or hints on how to do it! Many thanks! //Fredrik