Using Code in Markdown

Inline Code

Use backticks () to denote inline code`.

Code Block

Use three backticks with an optional language name for syntax highlighting:

class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}

For more details, visit the Code Block page.

Was this page helpful?