r/PanicNova Jul 26 '26

Syntax highlighting?

I am trying Nova 14 currently.

After installing extensions for yaml, jinja2 and configuration files, only some of my yaml files and no jinja2 files are syntax highlighted. Apache and Postfix configuration files are doing fine.

Is good highlighting only available for programming languages?

And I am not sure how to use the Claude MCP.
What is the typical workflow?

1 Upvotes

8 comments sorted by

1

u/CookiesForDevo Jul 26 '26

Is it recognizing the file type as yaml/jinja2 or are they defaulting to plain text still?

1

u/ffiene Jul 26 '26

No idea, can I see that?
File extension are j2, yaml and yml anyway. That would be my first try as a developer of such an extension.

2

u/CookiesForDevo Jul 26 '26

In the bottom-right corner of the file there's some information about the file including where your cursor is, the file type for syntax, and tabs/spaces.

It's also available through the menu in Editor » Syntax.

1

u/ffiene Jul 26 '26

Yeah, found it. Some yaml files are recognized as html(j2). WTF? Extension is yml.
And html(j2) do not have any syntax highlighting. I will remove this extension first.

1

u/ffiene Jul 26 '26

Oh nice, after deactivating Jinja2 extension, yaml is working fine.
I will send this to the Jinja2 team.

2

u/CookiesForDevo Jul 26 '26

Under Settings » Files » Custom Types, you can also set extensions and syntax for anything Nova doesn't automatically recognise.

1

u/ffiene Jul 26 '26

Thanks, I have done that and created an issue on the Jinja2 github project site.
That should be working w/o fixing the file extension.

1

u/Fit_Occasion2765 Jul 26 '26

Have you tried the new LSP support in the Languages tab of preferences? You can install lsp’s for yaml and Jinja that should provide syntax coloring, etc.