We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I installed pretty-print-json package using NPM and added the this typescript and html code in my angular component:
const elem = document.getElementById("account"); if (!elem) { return; } const data = { active: true, mode: "🚃", codes: [48348, 28923, 39080], city: "London" }; elem.innerHTML = prettyPrintJson.toHtml(data, { quoteKeys: true });
<pre id="account" class="json-container dark-mode"></pre>
However I could not manage to make it work with dark mode. The others configs are working as expected so far.
Can you guys help me, please? I think I'm missing a step.
The text was updated successfully, but these errors were encountered:
Adding the class dark-mode to the container as you have done should be sufficient assuming the default CSS is loaded into the web page.
dark-mode
Is the pretty-print-json.css file correctly linked: https://github.com/center-key/pretty-print-json/blob/main/dist/css/pretty-print-json.css
Sorry, something went wrong.
No branches or pull requests
I installed pretty-print-json package using NPM and added the this typescript and html code in my angular component:
However I could not manage to make it work with dark mode.
The others configs are working as expected so far.
Can you guys help me, please? I think I'm missing a step.
The text was updated successfully, but these errors were encountered: