You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to add text in related tag when using PrismJS but I couldn't do it It works when I don't include it in my PrismJS project i couldn't solve this problem
#3610
There is a problem, when I press the button with PrismJS added in this code, there is no change in the dbase part
I disable PrismJS or remove class="language-cpp" in the code tag and it allows adding, how can I solve this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
< pre id="code">
< code class="language-cpp">
const outputNumber = document.querySelector(".output .dbase");
changebtn.addEventListener('click', () => {
outputNumber.innerText = "test"+".json";
})
There is a problem, when I press the button with PrismJS added in this code, there is no change in the dbase part
I disable PrismJS or remove class="language-cpp" in the code tag and it allows adding, how can I solve this?
Beta Was this translation helpful? Give feedback.
All reactions