sunjw / jstoolnpp

A JavaScript (JSON) tool for Notepad++ (formerly JSMinNpp) and Visual Studio Code.
GNU General Public License v2.0
283 stars 24 forks source link

Please add settings to configure default code highlight language #89

Closed skironDotNet closed 3 years ago

skironDotNet commented 4 years ago

Previous versions defaulted to JavaScript, in the new version it default to JSON. I prefer JavaScript highlight, Can you add a config for this?

The scenario is I paste JSON into fresh opened n++ there is no highlight because it's in text mode. I hit Ctrl + Alt + M and JSON data gets formatted, and Language switch to JSON (before JavasSript)

image

I would really prefer this as default

image

See how null vs number is highlight? Also I prefer properties as gray

image

Can you make it configurable?

Great plugin BTW!

Thank you!

sunjw commented 4 years ago

Related to #87

skironDotNet commented 4 years ago

Now I see that if you really can't enforce this, we should just reconfigure n++ ourselves. In style configuration we can select extension to language, or we could change style for JSON itself https://www.foxinfotech.in/2018/06/how-to-associate-a-file-type-with-language-in-notepad.html

skironDotNet commented 4 years ago

But there is no way to Delete JSON, or extension image

Also I just removed your plugin and npp still defaults to JSON language for .json extension, so may be a bug or other plugin issue. I'll keep positing here, chances are this not relevant to your plugin

y377 commented 4 years ago

感谢中国制造,谢谢楼主,我要下载一个试试,从sourceforge发现此项目