For example, when writing an angular app, you can write some ng-template in inline:
html(data-ng-app="myApp")
body
script(type="text/ng-template" id="myTemplate")
input.form-control(placeholder="Enter your name here") // these two lines
button.btn.btn-default OK! // shouldn't be highlighted as javascript
In the above example, the code should be highlighted as jade. And for good reason: the script tag is not followed by a ., indicating that the following code, compiled by jade, will become tags anyways. So it is not reasonable to highlight them as anything but jade code.
For example, when writing an angular app, you can write some
ng-templatein inline:In the above example, the code should be highlighted as jade. And for good reason: the
scripttag is not followed by a., indicating that the following code, compiled by jade, will become tags anyways. So it is not reasonable to highlight them as anything but jade code.