The hidden attribute works much better in the WordPress post area—commenting out code in the post area will hide all copy that follows and most often break the layout.
See the Pen Comment out code using the “hidden” attribute. by Chad Ritchie (@chadritchie) on CodePen.