Something went wrong. Try again.
Official documentation for Pocketenv docs.pocketenv.io
Something went wrong. Try again.
895 B · 35 lines
MDX
at main
123456789101112131415161718192021222324252627282930313233343536---title: 'Code blocks'description: 'Display inline code and code blocks'icon: 'code'---
## Inline code
To denote a `word` or `phrase` as code, enclose it in backticks (`).
```To denote a `word` or `phrase` as code, enclose it in backticks (`).```
## Code blocks
Use [fenced code blocks](https://www.markdownguide.org/extended-syntax/#fenced-code-blocks) by enclosing code in three backticks and follow the leading ticks with the programming language of your snippet to get syntax highlighting. Optionally, you can also write the name of your code after the programming language.
```java HelloWorld.javaclass HelloWorld { public static void main(String[] args) { System.out.println("Hello, World!"); }}```
````md```java HelloWorld.javaclass HelloWorld { public static void main(String[] args) { System.out.println("Hello, World!"); }}```````