Joined May 2011
·

Ralph Holzmann

Software Engineer II at Twitter
·
Fond du Lac, WI
·
·
·

Posted to The //* /*/ //*/ comment toggle trick over 1 year ago

Nice! I've used a similar method in JavaScript like this:

// On!
/**/
var foo = "bar";
/**/
// Off!
/** /
var foo = "bar";
/**/

The trick is to toggle the space after the second asterisk in the first multiline comment block. Interesting to see other ways to do this as well!

Achievements
108 Karma
0 Total ProTip Views