3 ms·
Editors can highlight SQL queries embedded as strings. Neovim can do it, and I'm pretty confident it's not going to be alone in that respect. edit: Not the edi
by wcrossbow 2y ago
Editors can highlight SQL queries embedded as strings. Neovim can do it, and I'm pretty confident it's not going to be alone in that respect.
edit: Not the editor I use but thought it might be helpful. Here is an extension, which I haven't tested, to do this in VSCode: https://marketplace.visualstudio.com/items?itemName=iuyoy.highlight-string-code https://marketplace.visualstudio.com/items?itemName=iuyoy.hi...
- mijamo 2y agoI have never seen a syntax highlighter for SQL that actually covers the real deal from Postgres dialect. Basic stuff is covered and then suddenly you use a combination that isn't covered and the colors are all wrong. This is even true for pgadmin, which is ironic. Unlike most programming languages, SQL built in syntax is huuuuuge and it is very hard to cover it all, especially as it varies with the dialect.
- eddd-ddde 2y agoAny jetbrains IDE with sql tools will work perfectly in my experience.
- emmelaich 2y agoMaybe it's time for programming languages for use something like markdown in strings for embedded sql and dsl. e.g. ```sql ```
- dagss 2y agoI use Jetbrains and there is at least full coverage for MSSQL in my experience, which is a huge dialect -- not only syntax highlighting but full IDE features like autocompletion and target name refactoring etc. And 10 other dialects are listed..