On my site I supply code samples for both C# and Visual Basic in articles. By default, I want only the C# brushes to display on page load (vb samples would be set display: none;
In the past I've accomplished this by waiting for all the content to load and then hiding the VB samples:
$(document).ready(function() {
setTimeout(function() {
$(".vb").hide();
}, 500);
});
But this is sketchy at best, so it occurred to me: why not just set a default style for those brushes so that they're hidden in the stylsheet?
Unfortunately, I've looked and I can't find any brush specific style rules in syntaxhighlighter that I can play around with...
Can anyone suggest a solution here because I'm very confused...
Here are two pages on my site. The .hide()
works in the 1st, but not in the 2nd..