It works for me, as long you don't use <!-- language: hint --> as those are deprecated.
From What is syntax highlighting and how does it work?
Note that [overriding the default highlighting] is only supported when using the code fence (```) method of code formatting; as of the implementation of CommonMark, doing so on code blocks using the four-space indent method is no longer supported*:
Instead use code fences (three backticks) and place the highlight hint on the starting code fence: ```javascript (if you want the hint used on that tag) or ```lang-javascript (if you want the explicit supported highlighter)
Example
Adapted from source revision
HTML
<div class="opened-side-nav" id="barres">Content</div>
<div class="logo">
<input id="5055" class="showsidenavbar" type="checkbox" onclick="showsidenav()">
<label for="5055">=</label>
JavaScript
<script>
function showsidenav(){
document.getElementsById("barres").style.display = "block";
}
</script>
CSS
.opened-side-nav {
background-color: ghostwhite;
width: 30%;
height: 100%;
position: absolute;
border-right: black 2px solid;
z-index: 1;
overflow: hidden;
display: none;
.jsfile, I'd think there was something wrong with your IDE.(Note that I didn't say.jsx.)