This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[ BUILD # : 200710071200 ] [ JDK VERSION : 1.6.0_02 ] JSON protocol has a very limited syntax and a significant chunk of it will tend to be strings. This leads to unhelpful highlighting. It could be improved by making name strings a different colour from other strings and giving a colour to numbers. So, {"name":"value"} would highlight "name" as light blue say instead as orange as is the case for "value".
I propose the following change to the language.nbs for JSON to effect my proposed highlighting change. In the grammar section change Pair = <js_string> ":" Value; to Pair = Key Value; Key = <js_string> ":"; This enables us to distinguish key from value. And then in the following colors section add: COLOR:js_number: { foreground_color:"#009900"; } COLOR:Key: { foreground_color:"black"; } This makes numbers a mid-green, keys black and leave string values as orange and Booleans and null as blue.