Andrey Tykhonov <atykho...@gmail.com> writes:

> Hi all!
>
> I have such block:
>
> #+BEGIN_SRC my-python
> import sys
> sys.platform
> #+END_SRC
>
> I want it to be with syntax highlighting, so it will looks like (in a
> org-file) exactly as:
>
> #+BEGIN_SRC python
> import sys
> sys.platform
> #+END_SRC
>
> (of course the value of org-src-fontify-natively is t).
>
> but in the same time I would like that that block will be executed by means
> of custom org-babel-execute:my-python command.
>
> How can I achieve that?
>

It sounds like you already know how to define a custom execution
function.  To specify the mode used to highlight a code block, add an
element to the `org-src-lang-modes' variable.  E.g.,

  ("my-python" . python)

Best,

>
>
>
> Andrey
>

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D

Reply via email to