Actual widget output
Tutorial, documentation or blog post

Show code exactly as typed.

Each example below is the actual published output of the Code example block widget. Code is printed as plain text inside a pre and code element, so markup and entities are shown, never run.

JavaScript
function greet( name ) {
	return 'Hello, ' + name;
}

Default settings: the sample JavaScript function under a 'JavaScript' label, in a monospace block with a subtle tinted background and border.