Add support for type=application/json in HTML #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "application-json"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
On Facebook, we use application/json script tags (open HTML source on facebook.com logged in), and would like to enable syntax highlighting and code folding . I opened a PR for devtools to add pretty printing, but was directed here for adding the highlighting/parsing by @bmeurer (see https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4047809 ).
This adds that support (hopefully)
Since this involves adding a dependency for a relatively rare use case, I don't want to make it part of the default configuration, and would recommend configuring it on an individual setup basis. The devtools already load the JSON parser, so adding it there would be unproblematic.
Alright, that makes sense. We can put this into
CodeHighlighter.tson our end instead.Pull request closed