Replies: 2 comments 1 reply
-
I think what I'm asking for is #886. |
Beta Was this translation helpful? Give feedback.
-
Hi @rkh. Delta uses a library called syntect for syntax highlighting, which uses the Sublime syntax definition format. So if there's a Sublime syntax definition that does the multi language support you want then it's possible (either it works out of the box, or by installing a custom syntax definition). Delta does not use bat. But it does use the collection of sublime syntax definitions distributed with bat. Both bat and Delta use syntect, and installation of custom syntax definitions etc is the same / shared. |
Beta Was this translation helpful? Give feedback.
-
From what I understand, delta uses bat under the hood for highlighting. Is there any way to get nested languages to highlight in delta? Like TypeScript or SASS inside a Vue SCF? I assume it's not working because it only has access to the actual snippet shown? Is there some workaround? Like configure input diff to include entire file as context, have delta reduce surrounding number of lines, something like that.
Beta Was this translation helpful? Give feedback.
All reactions