notepad-plus-plus / notepad-plus-plus

Notepad++ official repository
https://notepad-plus-plus.org/
Other
23.02k stars 4.61k forks source link

[Feature Request] automatically bind .vue extension to rendering html #10613

Open xlch88 opened 3 years ago

xlch88 commented 3 years ago

Description of the Issue

.vue file is rendered as a plain text by default, manual configuration is needed to introduce syntax highlight for these files.

Steps to Reproduce the Issue

  1. Copy any file with .vue format from any vue based project
  2. Open it
  3. You will see that there are no code syntax highlight

Expected Behavior

.vue file is recognized as well as a .html file and should be rendered the same way a .html file is rendered, this allows to reuse the mechanism on rendering html files and a better coding experience with a vue based project

Actual Behavior

No syntax highlighting is displayed on any .vue file

xlch88 commented 3 years ago
  1. Open %USERPROFILE%\AppData\Roaming\Notepad++\langs.xml
  2. Find <Language name="html"
  3. Add “vue” after the "ext" attr
  4. Save and restart notepad++
ArkadiuszMichalski commented 2 years ago

Related to https://github.com/notepad-plus-plus/notepad-plus-plus/issues/4757.