In previous versions of Visual Studio, I had syntax highlighting knockout.js.
Since the transition to Visual Studio 2017 in the community building in Razor, the syntax highlighting has disappeared and I have not found a way to turn it on.
Interestingly, however, when I put the same code into a Webforms-based project, the highlighting seems to work, at least to some extent.
Is there anything I can do to turn on syntax highlighting for Razor? And / Or is there a way to make custom syntax highlighting rules? [eg. highlight a specific data attribute or so)

source
share