Skip to content

Instantly share code, notes, and snippets.

@lsparrish
Forked from crcx/blocker.rst
Created December 22, 2009 08:11
Show Gist options
  • Save lsparrish/261603 to your computer and use it in GitHub Desktop.
Save lsparrish/261603 to your computer and use it in GitHub Desktop.

Block Conversion

Author: Charles Childers
Version: 2009.12.21

Blocker User's Guide

Overview

Retro includes a block editor (red), and has a more capable editor (rem) in the forthlets package. Since it's often easier to edit code in a text file (especially if you're sharing it), having a set of words to format text into blocks and blocks back into text is useful.

Text to Blocks

Enter the following at the root of the forthlets directory:

./retro --with input_file --with apps/blocker.retro

Replace input_file with the file you want to convert to blocks.

Blocks to Text

In a Retro with blocker.retro loaded:

totext
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment