dbml icon indicating copy to clipboard operation
dbml copied to clipboard

How to have syntax highlighting on Intellij products? (WebStorm, etc.)

Open DNA-PC opened this issue 1 year ago • 5 comments

I noticed there is a plugin for VS Code, but couldn't find one for WebStorm.

Alternatively, what would be a good-enough file extension to use to have syntax highlighting if there is no dedicated plugin available?

image

DNA-PC avatar May 18 '23 10:05 DNA-PC

We do not yet support syntax highlighting in WebStorm.

Furthermore, we'd like to learn more about your use cases in order to understand what you're doing with DBML. I asked because I'm curious if there are any other solutions that would work in your situation.

huyphung1602 avatar May 18 '23 11:05 huyphung1602

Being more familiar with WebStorm, and liking to centralize everything in the same place, I naturally ended up keeping a copy of the schema there, and was wondering if I could also improve the file readability somehow.

DNA-PC avatar May 18 '23 12:05 DNA-PC

It appears that I did not phrase my earlier query clearly. I mean, I'd like to know if you're utilizing this DBML code for dbdiagram, dbdocs, or other purposes. Instead, I'd like to learn that.

We will take your proposal about WebStorm syntax highlighting into consideration.

huyphung1602 avatar May 19 '23 08:05 huyphung1602

We're using dbdiagram, indeed. And that's it for now.

Our workflow is to edit on dbdiagram, unless we need advanced features like search and replace, or look at the "code" in full width, in those cases I rather do it on Webstorm and keep both version in-sync regularly.

Also, I've made a PR on GitHub for my teammates to add comments on the diagram file (.txt) itself, I couldn't think of a better way to gather feedback and discuss it in a way that makes it easy to review.

Edit: I'm the same user, just mixing different accounts

Vadorequest avatar May 19 '23 08:05 Vadorequest

It's great to get your detailed response. We'd like to figure it out so that we can improve our other products as well. We will also record your situation in our product logs.

Thank you very much for your input.

huyphung1602 avatar May 19 '23 09:05 huyphung1602