How to enable Juno on non-jl file types (e.g. *.adoc)?

On Juno, the possibility to run Julia code seems to be reserved to .jl files.
I look for how to add it to my *.adoc files, so I don’t need to copy/rename them in order to run code snippets on them, but it’s not in the package settings.

So, how can I run Julia code in non-jl files ?

If you set the “document type” in Atom to Julia that seems to work. To have that done automatically you would need to configure Atom to select the correct language:

I introduced the config to allow what you want in Juno 0.8.8:

What you need to do is:

Note this can cause some weird behaviours, since Juno is developed assuming it’s only used for Julia files.

1 Like