<br><dt><samp><spanclass="env">DOC_DIR</span></samp><dd>the document file directory. The full file path is <samp><spanclass="file">$DOC_DIR/$DOC</span></samp>.
<br><dt><samp><spanclass="env">DOC_BASE</span></samp><dd>the basename without extension.
<br><dt><samp><spanclass="env">DOC_EXT</span></samp><dd>the document filename extension including the period. The basename is always <samp><spanclass="file">$DOC_BASE$DOC_EXT</span></samp>.
<br><dt><samp><spanclass="env">LINE</span></samp><dd>the number of the line containing cursor.
<br><dt><samp><spanclass="env">DATA_DIR</span></samp><dd>the user data directory. For example the tools are stored in <samp><spanclass="file">$DATA_DIR/menu.cfg</span></samp> file and in files in the <samp><spanclass="file">$DATA_DIR/tools/</span></samp> directory.
</dl>
<p>Additionally, all processes ran from inside medit will have <samp><spanclass="file">DATADIR/scripts</span></samp>
directories in <code>$PATH</code>, so you may place some medit-specific programs
or scripts into <samp><spanclass="file">USERDATADIR/scripts/</span></samp> to be used from shell script tools.