Skip to main content

Inline code

Wrap a word or phrase in backticks to render it as inline code.
Wrap a `word` or `phrase` in backticks to render it as inline code.

Code blocks

Use fenced code blocks with a language identifier for syntax highlighting. You can optionally add a filename after the language.
HelloWorld.java
class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}
```java HelloWorld.java
class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}
```