You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/12/10 09:18:52 UTC
[GitHub] [netbeans] noelma opened a new issue, #5066: [Theme] More complete example of JSON file for syntax highlighting
noelma opened a new issue, #5066:
URL: https://github.com/apache/netbeans/issues/5066
### Description
More complete example of JSON file for syntax highlighting
### Use case/motivation
The example JSON file for syntax highlighting is the one provided by the [json.org](https://json.org/example.html) site.
This example only contains strings, object and array.
```json
{
"glossary": {
"title": "example glossary",
"GlossDiv": {
"title": "S",
"GlossList": {
"GlossEntry": {
"ID": "SGML",
"SortAs": "SGML",
"GlossTerm": "Standard Generalized Markup Language",
"Acronym": "SGML",
"Abbrev": "ISO 8879:1986",
"GlossDef": {
"para": "A meta-markup language, used to create markup languages such as DocBook.",
"GlossSeeAlso": [
"GML",
"XML"
]
},
"GlossSee": "markup"
}
}
}
}
}
```
This is not enough to set syntax highlighting
Can you provide a more complete example like this:
```json
{
"object": {
"array": [
{ "value": "first" },
{ "value": "second" }
],
"bool_false": false,
"bool_true": true,
"char": "a",
"encoding": "\uD83D\uDE10",
'error': 'error',
"exponential": 1E2,
"exponent": 1e2,
"float": 1.0,
"integer": 1,
"null": null,
"regex": "/.HTML/",
"string": "Lorem ipsum",
"url": "http://example.com",
"void": ""
}
}
```
Expected result:

### Related issues
_No response_
### Are you willing to submit a pull request?
No
### Code of Conduct
Yes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] Chris2011 commented on issue #5066: [Theme] More complete example of JSON file for syntax highlighting
Posted by GitBox <gi...@apache.org>.
Chris2011 commented on issue #5066:
URL: https://github.com/apache/netbeans/issues/5066#issuecomment-1345519463
Just an info, if you want to help us or make a little christmas present to everyone we would be very happy if you help us to improve this :). I think this will be easy, just have a look here: https://github.com/apache/netbeans/blob/master/webcommon/javascript2.editor/src/org/netbeans/modules/javascript2/editor/resources/JsonExample.json. This is the example which is shown in the options.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] noelma commented on issue #5066: [Theme] More complete example of JSON file for syntax highlighting
Posted by GitBox <gi...@apache.org>.
noelma commented on issue #5066:
URL: https://github.com/apache/netbeans/issues/5066#issuecomment-1345278478
Hello @Chris2011,
I tried to create a Netbeans theme for JSON format.
The example in `Options` > `Fonts & Colors` > `Language` > `Json` does not allow to do it correctly.

There is no example of boolean, integer, float, null, url...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] noelma commented on issue #5066: [Theme] More complete example of JSON file for syntax highlighting
Posted by GitBox <gi...@apache.org>.
noelma commented on issue #5066:
URL: https://github.com/apache/netbeans/issues/5066#issuecomment-1345558351
@Chris2011 You can assign this to me
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] Chris2011 commented on issue #5066: [Theme] More complete example of JSON file for syntax highlighting
Posted by GitBox <gi...@apache.org>.
Chris2011 commented on issue #5066:
URL: https://github.com/apache/netbeans/issues/5066#issuecomment-1345515388
Now I get it, thx. So yes we need to update the JSON Example with all available tokens that matches the categories. This is also a problem not just for JSON.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] Chris2011 commented on issue #5066: [Theme] More complete example of JSON file for syntax highlighting
Posted by GitBox <gi...@apache.org>.
Chris2011 commented on issue #5066:
URL: https://github.com/apache/netbeans/issues/5066#issuecomment-1345263177
Hey @noelma I really don't get what you are trying let us know. What is the problem and what are you requesting here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] noelma commented on issue #5066: [Theme] More complete example of JSON file for syntax highlighting
Posted by GitBox <gi...@apache.org>.
noelma commented on issue #5066:
URL: https://github.com/apache/netbeans/issues/5066#issuecomment-1345555814
Hello @Chris2011, thank you for your feedback.
When I created my theme, I struggled a lot with previews.
I plan to create a feature request for each language.
In the meantime, I will make a pull request for the JSON format :wink:
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] Chris2011 commented on issue #5066: [Theme] More complete example of JSON file for syntax highlighting
Posted by GitBox <gi...@apache.org>.
Chris2011 commented on issue #5066:
URL: https://github.com/apache/netbeans/issues/5066#issuecomment-1345557333
Sounds nice :). Thx.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists