– Blog about the travel, information technology, business, and other... About | Contact

Comment or decomment source code with only 1 byte

Sometimes for debuggin purposes, we need to quickly comment or decomment many lines of source code. In programming languages, which are based on C-syntax (like PHP, Java, Java Script, C++, C#,...), you can do this using the following trick:
print("This line is not commented");

print("But this line is commented");
As you can see, we need to change only 1 character.
Write new comment...

© 2013–2019   Powered by Nanoblog