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

[Feature Request] JSON Language option for JSFormat #72

Closed Klober81 closed 5 years ago

Klober81 commented 5 years ago

JSFormat does a wonderful job of formatting not just JS but JSON as well - which is my main use for it. However, needing to change the Language from JavaScript to JSON each time I use JSFormat is driving me crazy! Yes, I realize it's a small price to pay for the ease with which I can format JSONs but if you could find it in your heart to add a simple option in the JSTool Options panel to choose between JS and JSON for the language set when JSFormat is run this would truly be the perfect JS tool in my eyes!

sunjw commented 5 years ago

Try to guess JSON content and set language right. 1211d39f0e68337d1acd2a63785a5494e36cf5c8