Editing

Now that you finally know how to start the editor, select a blockfile, and choose the block you'd like to edit, how can you get your code into it? Relax, it's not that hard.

You can use the words i and ia to insert/overwrite text. These are used like:

| Put the words "Hello World" on line 3, starting at column 0
3 i Hello World

| Put the words "Hello, World" on line 6, starting at column 10
9 6 ia Hello, World

Note that both line and column numbers start at 0.

You can delete a line using d, or the entire block using x. If you need to erase all of the blocks, use new. Examples:

| Delete line 3
3 d

| Delete everything in this block
x

| Delete all of the blocks
new

These form the core of the editing experience. It's also important to review how to actually run code in the blocks. We provide three words for this.

| evaluate a specific line
4 el

| evaluate the entire block (as as single line)
eb

| evaluate the entire block, one line at a time
e

The preferred way to evaluate a block is to use e. If you need to evaluate several blocks, chain them by doing: n e at the end of each block.

Note: it is recommended that you start the actual code in block 1 and use block 0 for comments about the blockfile. If you do this you can use \ when loading a blockfile to evaluate it automatically.