Code Sections
2021, Oct 03
This page has examples of syntax highlighting in different languages, as well as the code copy header that can be applied to code sections that allows readers to quickly copy the code snippet to the clipboard (come on everyone has copy and pasted code from the internet every once in awhile)
function sayHello(name) {
if (!name) {
console.log('Hello World');
} else {
console.log(`Hello ${name}`);
}
}
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
<p>Here's some HTML for you.</p>