Visual Studio attribute binding attribute highlight [knockout.js]

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)

Syntax comparison for building Webforms and Razor projects

+4
source share
2 answers

, _references.js:

/// <reference path="knockout-3.4.0.debug.js" />

Visual Studio Intellisense, sintax hightlighting .cshtml.

Visual Studio script, , . script script. IntelliSense , .


:

MSDN - JavaScript IntelliSense

# Corner - _references.js

Mads Kristensen - _references.js

0

Source: https://habr.com/ru/post/1689755/


All Articles