Sublime Forum

DocBlockr not coloring JSDocs?

#1

Was wondering if anyone else has an idea why this is happening and how to fix it.
I’m using the DocBlockr plugin and when creating documentation blocks for PHP it will color the syntax of the documentation, like @since, or @link etc. But the same isn’t happening when writing documentation for JS files.

Do I need to set this up myself and how to do it?

0 Likes

#2

afaik its unrelated to that plugin because it doesn’t contain any syntax definitions, which is what ST uses to know which parts of the color scheme to apply where etc.
this seems relevant:

0 Likes

#3

Oh, I see there’s no movement on this front since 2016 :confused:

Wouldn’t this be handled in JS Source.sublime-syntax, PHP Source.sublime-syntax has the heredoc part in it.

0 Likes

#4

I imagine a new syntax definition would be made for JSDoc in the JavaScript package, which the JavaScript syntax would reference, like how D and Java references the JavaDoc syntax, for example

the lack of movement may not be too relevant, it just needs sometime to take the time to work on it and raise a PR

0 Likes