---
title: Tables and code
tags: [example, table, code]
---
# Tables and code
## A table
| Item | Price | In stock |
| --- | ---: | :---: |
| Pencil | 1.20 | yes |
| Notebook | 4.50 | yes |
| Eraser | 0.80 | no |
In Live Preview click a cell to edit it. Add or remove rows and columns, and set their widths and heights, with the table bar.
## Code
Put code between lines of three backticks, with the language after the first three. Press the copy button at the upper right of a block to copy its code. A block of more than five lines can be folded with the arrow button, and AmeNote remembers which blocks you folded in each note (to start with every long block folded, turn on **Fold code blocks at first** in Preferences > Interface).
```javascript
function greet(name) {
return `Hello, ${name}!`;
}
console.log(greet('AmeNote'));
```
```bash
ls -la
```
Back to [[01 Formatting and Lists]] · Next: [[03 Callouts, Footnotes and Formulas]]
Help
Every new account gets these example notes in the AmeNote Manual folder of its vault. Here they can be read as they look or as they are written.