Set syntax highlighting for undefined file extension (*.nf)

I would like *.nf files (Nextflow scripts) to automatically use Groovy syntax highlighting when opened in the code editor.
Does anyone know how I can configure this in JupyterLab?

I think someone was doing almost exactly that for an older version of JupyterLab here.
I think the more up-to-date version of that is outlined here with a related example discussed in that thread.

1 Like

Thanks! Will check these out and post my solution here if I manage to make it work.

1 Like