Have code snippets complete with clipboard functionality and fancy language tags. No more boring code snippets in your pages. Oh yeah baby! Click on this article to see some code in action.
fn main() {
println!("Hello, world!");
}
This is a code block with syntax highlighting. It's pretty cool, right?
def main():
print("Hello, world!")
This is another code block with syntax highlighting. It's pretty cool, right?
function debounce(func, wait) {
var timeout;
return function () {
var context = this;
var args = arguments;
clearTimeout(timeout);
timeout = setTimeout(function () {
timeout = null;
func.apply(context, args);
}, wait);
};
}