Replies: 3 comments
-
Injections are the right tool for this for languages with tree-sitter grammars: https://tree-sitter.github.io/tree-sitter/syntax-highlighting#language-injection Supporting this for plaintext is out of scope though, it should be limited to languages with tree-sitter grammars. |
Beta Was this translation helpful? Give feedback.
-
I did it for Ruby here, it could help you to implement in other languages. |
Beta Was this translation helpful? Give feedback.
-
I did this to go simply by adding a file
Extend to include as many keywords as you'd like :) Give it a go! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
A somewhat common way to identify a multiline string as an sql string for editor support is something like this:
(example: https://github.com/barklan/inline_sql_syntax )
It would be neat to have this or equivalent support for syntax highlighting in helix, which has otherwise been more or less perfect for me out of the box and has become my goto editor.
Beta Was this translation helpful? Give feedback.
All reactions