Setting the file. One moment.
Subchapter 7.14
references/code-max-height.mdMarkdown657 BView on GitHub
```ts {2|3|7|12}{maxHeight:'100px'}
function add(
a: Ref<number> | number,
b: Ref<number> | number
) {
return computed(() => unref(a) + unref(b))
}
/// ...as many lines as you want
const c = add(1, 2)
```Use {*} when you only need maxHeight:
```ts {*}{maxHeight:'100px'}
// long code here
```When code is too long to fit on one slide but you want to show it all with scrolling.