Installation > Installing in Windows >


TextPad installation and configuration

TextPad is mostly accessible with JAWS and perhaps other screen readers but does not work well with NVDA. The author's approach to its developers to address various accessibility issues have been unsuccessful.

As a user of NVDA the author did not use TextPad for a long time, the instructions below might or might notbe bee relevant to recent versions of TextPad

It is very convenient to use MarkupBinder with TextPad as a series of tools. TextPad is a fully featured, general purpose, text editor for Windows which enables the user, among many other things, to configure external programs as tools. What it means in practice is that the user loads TextPad with a file, edits it and performs operations on this file; in our case using MarkupBinder.

TextPad is a shareware program which gives the user a certain trial period after which a 'nagging window' appears from time to time. It is still usable but with such a useful program if you find it accessible you might consider paying the modest registration fee to support the developers.

It is assumed that you have installed MarkupBinder as described in the first page of this section. Download and install TextPad.
Try the program and convince yourself that it is accessible with your favourite screen reader.

Configuring TextPad to work with MarkupBinder

TextPad allows you to configure tools which once configured are accessible from the menu:
Tools > External Tools

Shortcuts are also automatically available in the order the tools have been created, starting with Ctrl + 1, Ctrl + 2, etc. The author believes that it is possible to change the shortcut keys' order but this facility does not seem to be accessible.

Automatic tools configuration using a registry file

The easiest way to do this is to configure the TextPad keys in the Windows Registry automatically using the 'MarkupBinder TextPad tools setup.reg' file available in the MarkupBinder\TextPad folder.
Locate this file and press Enter; a message is displayed warning you of the risks of modifying the Registry. Select OK to confirm and the MarkupBinder TextPad tools are configured and ready for use. The Registry configuration file was tested in Windows 7 and XP but not in Vista although it is expected to work. Note that the above configuration only changes the Tools key in the TextPad entry in the Registry so the risk to the rest of your computer system is minimal but the author will take no responsibility for any damage to your computer and you may choose to configure instead the MarkupBinder tools in TextPad manually as described below.

If you configured the tools automatically as described above, skip the rest of this page and read the rest of this manual.

Manual tools configuration

To configure MarkupBinder commands manually as tools, in the menu go to:
Configure > Preferences

You are presented with a tree which is not fully accessible; you need to focus on the Tools node, press 't' to get there. With the focus on the Tools node, if you press Tab you will find a list of tools created already (if any) and buttons to add and apply changes. Once created you can also move the focus to a tool in the list, press F2 and change its name. You can also delete a tool by selecting it in the list and pressing the Delete key.

Once you have created tools, with the focus on the Tools node in the tree, press the Right key and then the Up and Down keys to select a tool and then tab to change its parameters.

To create a new MarkupBinder tool, follow these steps:

Repeat the steps above to define the commands recommended below (once you are familiar with the operation, it should take only a few minutes per tool).

Build Document Page

markup-binder-document.bat $File "$FileDir\$BaseName.html"

Convert the specified Markdown file and generate a document content page.

Build Folder

markup-binder.bat $FileDir

In the current folder and all its sub-folders, for files that have been changed, converts all individual Markdown files, generating content pages together with their header and links to other parts of the binder and generating all required index files and style sheets.

Build Binder

markup-binder.bat -all $FileDir

For the whole binder (starting from its root), for files that have been changed, converts all individual Markdown files generating content pages together with their header and links to other parts of the binder and generating all required index files and style sheets.

Rebuild Web Binder

markup-binder.bat -web $FileDir

Copies the binder folder structure with the name of the binder suffixed with '-Web'. Renames all folders so that spaces are replaced by underlines '_'. Converts all individual Markdown files generating content pages together with their header and links to other parts of the binder. Replaces all file names with an underline '_'. Generates all required index files and style sheets. This 'Web ready' binder folder structure should be ready for uploading to a website.

Clean Binder

markup-binder.bat -clean $FileDir

Cleans the entire binder by deleting all non-Markdown files including HTML files and the 'Web' folder.

Convert File

markup-binder.bat File − prompt(Enter MarkupBinder conversion command:)

When the tool is invoked, a dialog appears asking you to enter the conversion command; enter the command and press Enter.

Each conversion requires a different flag as explained in the 'Command line parameters' page. For example, to convert from HTML to Markdown, the command is:
html2md
Note that the '-' (dash or hyphen) flag prefix symbol is omitted.

These are pure single file conversions representing your document as written and are useful, for example, for conversion to RTF as can be used in most word processors. Another useful conversion is from HTML to Markdown; you can take an existing HTML file from the internet, convert it to Markdown, clean and edit it as required and incorporate it into your binder.

MarkupBinder Help

markup-binder-help.bat

Displays in your default browser the MarkupBinder help located in the MarkUp folder\docs.


[ Previous - Notepad++ installation and configuration ]

[ Up - Installing in Windows - Section ]

[ Up 2 - Installation - Section ]

[ Up 3 - MarkupBinder Manual - Main Index ]