# rehype-custom-code


```rust title="main.rs" {2}
fn main() {
    println!("Hello, world!");
}
```

```ts title="main.ts" showLineNumbers diff
  const main = () => {
-     console.log("hello, wolrd!");
+     console.log("Hello, world!");
  }
```

```java showLineNumbers
class Main {
    public static void main(String[] args) {
        System.out.println("Hello, world!");
    }
}
```