Skip to content

Commit 75f4dcf

Browse files
committed
wrap
1 parent 80047ac commit 75f4dcf

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

code.mdx

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,4 +359,22 @@ if __name__ == "__main__":
359359
````
360360

361361
## Wrap
362-
TODO: - wrap `boolean`
362+
Enable text wrapping for long lines using `wrap`.
363+
364+
```javascript Wrap Example wrap
365+
const greeting = "Hello, World! I am a long line of text that will wrap to the next line.";
366+
function sayHello() {
367+
console.log(greeting);
368+
}
369+
sayHello();
370+
```
371+
372+
````markdown
373+
```javascript Wrap Example wrap
374+
const greeting = "Hello, World! I am a long line of text that will wrap to the next line.";
375+
function sayHello() {
376+
console.log(greeting);
377+
}
378+
sayHello();
379+
```
380+
````

0 commit comments

Comments
 (0)