-
-
Notifications
You must be signed in to change notification settings - Fork 18
syntax highlighting issue #68
Comments
Thanks for the report - syntax highlighting is actually not managed by this extension at all, what you're seeing is Nova's core functionality. That being said, I think it would be reasonable for this extension to provide syntax highlighting, and I'll consider supporting it. My main concern is how a custom typescript syntax highlighting definition would interact with the built in one - I don't really like the idea of having two that you have to manually choose from (I'll have to play around with this). Also worth noting is that the language server protocol's next version will support "semantic tokens" which are used for syntax highlighting (microsoft/language-server-protocol#18, docs). If this lands it would probably be a better way to implement this, but would require Nova and the underlying language server this extension uses to support it. |
I would really appreciate this, and maybe Panic would allow us to override the default syntax highlighting with some kind of extension settings. I will send a support request, because I've had issues with syntax highlighting in the past with Coda and it makes it very difficult to use when the highlighting is so wildly different / incomplete. It's disheartening that there doesn't seem to be much progress in this area with nova over Coda. |
Looks like we can't really do this properly currently. Nova's internal typescript syntaxes take priority, and if I define a custom syntax with the same identifiers they're ignored. So, I can add a custom syntax (and fix bugs like this), but you'll always have to manually change to it when opening files (even if you configure the custom syntax as default for the project). I'm going to report this to Nova See #75 if you want to try it out |
Another big issue is that the custom syntax means other extensions that target |
Thank you for trying. Hopefully they are able to help make this workable. |
I'd like to chime in and also say thank you for trying! I recently developed a theme for Nova and have come to realise that for TSX, syntax highlighting isn't fantastic |
too bad. I always get the impression something is wrong and it also prevents from switching to Nova totally. I would sign a request. Any link to make a feature request? |
I paid for a Nova license but this is also keeping me from actually using it much. |
Nova 4's release notes has the following...
|
@olierxleben just the main help form. |
Hey @apexskier, thanks for keeping this issue updated. It looks like Nova is not handling syntax highlighting correctly where JSX includes nested embedded expressions. One embedded expression work fine: But if this embedded expression contains another one, the syntax highlighting breaks: |
I think that's not managed by the extension as @apexskier clarified above. Please file an issue at the support. I currently gave up on it and switched to VSCode again because Panic didn't fix it for a while. I made multiple support requests and they promised to fix it with Nova 4... but yeah, still broken. (got a refund for my complaints btw) |
This comment has been minimized.
This comment has been minimized.
Still not fixed in Nova 5. |
This makes working with Next.js in Nova especially cumbersome. |
I just tried Nova 6 and this is still a problem. I wanna use Nova but just cannot be productive in it for this simple reason. One would think that getting syntax highlighting right would be a base feature of a text editor. Had to switch back to VSCode. |
Just locking this since it's not something I can do anything about. I'll unlock if anything changes on Nova's side. |
Nova 7 is out with "TypeScript syntax improvements" listed as one of the major features.
|
Included in release v2.5.0 |
Not true, but there's a related comment there. Trying to add support for |
In some cases syntax highlighting is odd, for example, after the comma in the first line of:
https://cln.sh/VzR5d9
Expected behavior
VSCode screenshot: https://cln.sh/dCRLYh
Screenshots
https://cln.sh/VzR5d9
The text was updated successfully, but these errors were encountered: