You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Christian Lenz (Jira)" <ji...@apache.org> on 2020/05/27 13:56:00 UTC

[jira] [Created] (NETBEANS-4377) Change color for key -> value strings in json files

Christian Lenz created NETBEANS-4377:
----------------------------------------

             Summary: Change color for key -> value strings in json files
                 Key: NETBEANS-4377
                 URL: https://issues.apache.org/jira/browse/NETBEANS-4377
             Project: NetBeans
          Issue Type: Bug
          Components: javascript - JSON
    Affects Versions: 11.3
            Reporter: Christian Lenz
         Attachments: image-2020-05-27-15-51-04-645.png, image-2020-05-27-15-52-30-392.png, image-2020-05-27-15-54-23-821.png

If you open the package.json file or any other file with just strings, you see one color. In my case strings are are all green. That means, the keys of the JSON file are green and the values also. See my screenshot (image-2020-05-27-15-51-04-645.png).

This is not really readable in my opinion and I know that in JS files, if you use a JS object, it will be handled different. See my screenshot:  image-2020-05-27-15-52-30-392.png. So you can see that "blau" which is the key, will be handled with the key color, which is quite nice. So in a json file, it should be handled the same. Different color for key and value. Also inside the options I just can change the color for strings and the preview also shows me that keys are handled the same.

See my screenshot how VS Code handles it  image-2020-05-27-15-54-23-821.png. It also colors the quotes in the same color as the key.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists