emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Org" source blocks and minted


From: Juan Manuel Macías
Subject: Re: "Org" source blocks and minted
Date: Wed, 24 Mar 2021 05:18:21 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Hi Mike,

Michael Gauland <mikelygee@gmail.com> writes:

> I want to include an "org" source block in a document as an example,
> and have it formatted with minted. Unfortunately, minted doesn't seem
> to recognize "org" as a language,and the block is missing in the
> resulting PDF. For the moment, I've changed this to a "text" source
> block, but it would be nice to have syntax highlighting in the export.
>
> Have any of you done this, or something similar?
>
> Kind regards,
> Mike
>

You can write your own pygments lexer:

https://pygments.org/docs/lexerdevelopment

But it seems that someone already did the work of writing a lexer for
Org Mode: 

https://github.com/or/pygments-orgmode-lexer

Best regards,

Juan Manuel 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]