Rudolf Adamkovič <rud...@adamkovic.org> writes: >> On the other hand, simply allowing to specify @example appears to be >> safe (I may be wrong), even if we happen to use language name that is >> not supported by the highlighter. > > Yes, this is all we need: > > 1. Look up BACKEND in `org-latex-src-block-backend' > 2. Look up LANG in `org-latex-BACKEND-langs'
Maybe an alist? Either way is fine. > 3. Suffix `@example' with the looked up LANG translation. > > TL;DR All stars are perfectly aligned, and we can do the right thing. Then, it is probably Richard's turn to update the patch. -- Ihor Radchenko // yantar92, Org mode maintainer, 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>