From: "Fredrik Öhrström" <oehrstroem@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Question about syntax coloring using an external program
Date: Sun, 15 Oct 2023 16:01:22 +0200 [thread overview]
Message-ID: <CALZT+jB5Wg4+CfJpZ7u+xR-31Sk6pAGtRmSWUCgd5LzdZ+5PGw@mail.gmail.com> (raw)
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
next reply other threads:[~2023-10-15 14:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-15 14:01 Fredrik Öhrström [this message]
2023-10-15 15:34 ` Question about syntax coloring using an external program Basile Starynkevitch
2024-01-11 12:01 ` Fredrik Öhrström
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CALZT+jB5Wg4+CfJpZ7u+xR-31Sk6pAGtRmSWUCgd5LzdZ+5PGw@mail.gmail.com \
--to=oehrstroem@gmail.com \
--cc=help-gnu-emacs@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 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.