nuejs / create-nue

A recommended way to start a Nue project
https://nuejs.org
139 stars 30 forks source link

Vscode template #20

Closed malilat closed 11 months ago

malilat commented 12 months ago

Hello Can we have a vscode extension for .nue extension ?

kon-pas commented 12 months ago

This is far from perfect, but you can associate all .nue files with XML. VSCode will syntax highlight them as if they were XML. Paste the following to the settings.json in VSCode:

"files.associations": {
  "*.nue": "xml"
},

To mute XML syntax errors in .nue files, you can disable validation for them, like so:

"xml.validation.filters": [
  {
    "pattern": "**.nue",
    "enabled": false,
  },
],

Additionaly, to highlight JS in <style> tags, you can install this extension.

nue

malilat commented 11 months ago

thank you very much for this tip, it will help a lot of people

tipiirai commented 11 months ago

Now referenced on the docs as well: http://localhost:8080/docs/nuejs/getting-started.html

Thanks a ton @kon-pas !