Convert a text file to Treepad format
mktree.c
 
Treepad is a utility I've been using for several years to take notes and keep track of general information. Of late I've also been using the Web-enabled utility Evernote, but even though it is Windows-only and not web enabled, Treepad has a lot of features I like.
 
One of these features is the ability to organized information in a hierarchical manner.
 
I often want to edit, using a text editor, the information I add to Treepad. Treepad has the ability to import other Treepad files into an existing tree.
So I wrote maketree(), a filter that takes one of the hierarchical text files described above, created with a text editor, and converts it to a Treepad file.
I can then import that file directly into Treepad.
 
 
LIke most filters, mktree has embedded help text explaining its purpose and usage. It can be viewed by running the program with the -h option, e.g. mktree -h. I've reproduced that help text here .
 
mktree input mktree output
Talk about treepad
    Add a sample node
         This as a lower level node
         -
         with a sample
         two-line note
         -
    This is a higher level node
<Treepad version 2.7>
dt=Text
<node>
Generated TreePad File (remove this node)
0
<end node> 5P9i0s8y19Z
dt=Text
<node>
Talk about treepad
1
<end node> 5P9i0s8y19Z
dt=Text
<node>
Add a sample node
2
<end node> 5P9i0s8y19Z
dt=Text
<node>
This as a lower level node
3
with a sample
two-line note
<end node> 5P9i0s8y19Z
dt=Text
<node>
This is a higher level node
2
<end node> 5P9i0s8y19Z
 
 
Resulting Treepad Window
 
 
 
 
 
 
Previous  |  Next ]     [ Up  |  First  |  Last ]     (Article 23 of 485)
 
Comments, flames, broken links?
Please send email to maintainer@intricate-simplicity.com