Download: .zip
To run type (in your terminal) either
$ python XRead.py
or
$ python3 XRead.py
,
depending on whether you have python 2 or not, or
$ chmod +x XRead.py
and then
$ ./XRead.py
.
You can also run it from Idle.
XRead works like a standard plain-text editor. Don't try and open OpenOffice
or Microsoft Word files. It won't work. No RTF, ODT, DOCX, etc.
The web editor can be used as two things: Another application (in the
command just replace XRead.py
with XReadWeb.py
)
or an addon to XRead.py allowing you to use xml/html importing and exporting
with the special tree style of writing. It works like this (notice the
tabs and double spaces).
<a it='cheese'><b>text<c/></b>stuff<d><e>hmm<e/><f/></d>la</a>
would become to
a '#' '#' '#' {'it':'cheese'}
b '#' text '#' stuff '#' {}
c '#' '#' '#' {}
d '#' '#' la '#' {}
e '#' '#' '#' {}
f '#' '#' '#' {}
tagname '#' text '#' tailtext '#' {'attrib':'utes'}
tagname '#' '#' '#' {}
^
was a space character then tagname^'#'^^'#'^^'#'^{}