// ===============================================================================
// -*- DATA:INI:EDT -*-
//
// WinEdt Input Directives (Used for Tree and Gather)
//
// ===============================================================================

[BUILD]

REQUIRES=20161103

// ===============================================================================

[INPUT_DIRECTIVES]

// Icons for Project Tree
MAIN_ICON="DocASCII"
  TYPE_FILTER="txt"
MAIN_ICON="DocData"
  TYPE_FILTER="dat"
MAIN_ICON="MacroTest"
  TYPE_FILTER="ini"
MAIN_ICON="Macro"
  TYPE_FILTER="edt"
MAIN_ICON="DocHTML"
  TYPE_FILTER="htm;html"
MAIN_ICON="DocNSI"
  TYPE_FILTER="nsi"
MAIN_ICON="DocNSH"
  TYPE_FILTER="nsh"
MAIN_ICON="FileTEX"
  TYPE_FILTER="tex;texi"
MAIN_ICON="FileLTX"
  TYPE_FILTER="ltx"
MAIN_ICON="FileAUX"
  TYPE_FILTER="aux"
MAIN_ICON="FileBBL"
  TYPE_FILTER="bbl"
MAIN_ICON="FileBIB"
  TYPE_FILTER="bib"
MAIN_ICON="FileBLG"
  TYPE_FILTER="blg"
MAIN_ICON="FileBST"
  TYPE_FILTER="bst"
MAIN_ICON="FileCLO"
  TYPE_FILTER="clo"
MAIN_ICON="FileCLS"
  TYPE_FILTER="cls"
MAIN_ICON="FileDEF"
  TYPE_FILTER="def"
MAIN_ICON="FileDRV"
  TYPE_FILTER="drv"
MAIN_ICON="FileDTX"
  TYPE_FILTER="dtx;fdd"
MAIN_ICON="FileFD"
  TYPE_FILTER="fd"
MAIN_ICON="FileGLG"
  TYPE_FILTER="glg"
MAIN_ICON="FileGLO"
  TYPE_FILTER="glo"
MAIN_ICON="FileGLS"
  TYPE_FILTER="gls"
MAIN_ICON="FileIDX"
  TYPE_FILTER="idx"
MAIN_ICON="FileILG"
  TYPE_FILTER="ilg"
MAIN_ICON="FileIND"
  TYPE_FILTER="ind"
MAIN_ICON="FileINS"
  TYPE_FILTER="ins"
MAIN_ICON="FileIST"
  TYPE_FILTER="ist"
MAIN_ICON="FileLOF"
  TYPE_FILTER="lof"
MAIN_ICON="FileLOG"
  TYPE_FILTER="log"
MAIN_ICON="FileLOT"
  TYPE_FILTER="lot"
MAIN_ICON="FileMF"
  TYPE_FILTER="mf"
MAIN_ICON="FileMP"
  TYPE_FILTER="mp"
MAIN_ICON="FileMPX"
  TYPE_FILTER="mpx"
MAIN_ICON="FileSTY"
  TYPE_FILTER="sty"
MAIN_ICON="FileSYNC"
  TYPE_FILTER="synctex"
MAIN_ICON="FileTOC"
  TYPE_FILTER="toc"
MAIN_ICON="HtmlHelp"
  TYPE_FILTER="hhc;hhk;hhp"

ICON="DocASCII"
  TYPE_FILTER="tex;ltx;mp;mf;htm;html;ini"
ICON="Book"
  TYPE_FILTER="bib"
ICON="DocNSI"
  TYPE_FILTER="nsi"
ICON="DocNSH"
  TYPE_FILTER="nsh"

//  BEGINNING_OF_LINE_ONLY
//    0 - any position is admissible
//    1 - Beginning of line or indented
//    2 - Beginning of line only

INPUT="TeX"
  MODE_FILTER="TeX|DTX;STY;AUX"
  MAX_TREE_DEPTH=9
  OPEN_ON_DBL_CLICK=1
  BEGINNING_OF_LINE_ONLY=1
  CASE_SENSITIVE=1
  IGNORE_COMMENTS=1
  IGNORE_VERBATIM=1
  FILE_MUST_EXIST=0
  ALLOW_RECURSIVE_INCLUSION=0
  ALLOW_MULTIPLE_SIBLINGS_INCLUSION=0
  ALLOW_MULTIPLE_INCLUSION=1
  // Allow any type for inclusion ...
  INCLUDE_TYPE_FILTER="*"
  // But search for further directives only for:
  RECURSE_TYPE_FILTER="tex;ltx;texi"
  // WinEdt by default "understands" specifications
  // relative to the main file (%P) and
  // relative to the current document (%p).
  // Depending on the packages that you are using TeX usually only
  // recognises specifications relative to the main file!
  // Remove lowercase %p; form the PATH specifications
  // if you want WinEdt to behave this way!
  DIRECTIVE="\include{""?""}"
    EXTENSION=".tex"
    PATH="%P;%p;%@('TEXINPUTS');"
  DIRECTIVE="\include{?}"
    EXTENSION=".tex"
    PATH="%P;%p;%@('TEXINPUTS');"
  DIRECTIVE="\input{""?""}"
    EXTENSION="*;.tex"
    PATH="%P;%p;%@('TEXINPUTS');"
  DIRECTIVE="\input{?}"
    EXTENSION="*;.tex"
    PATH="%P;%p;%@('TEXINPUTS');"
  DIRECTIVE="\input ""?"""
    EXTENSION="*;.tex"
    PATH="%P;%p;%@('TEXINPUTS');"
  DIRECTIVE="\input ?"
    EXTENSION="*;.tex"
    PATH="%P;%p;%@('TEXINPUTS');"
  // Extended Input for bibliography (expands any TeX \PATH specifications!)
  // Use PATH sparingly as it may take a long time to build the tree otherwise...
  // {??}: allows a list in up to two lines - extended it if required {????}
  DIRECTIVE="\bibliography{????????????????????????????????}"
    CAPTION="%?" // Change this if you want to strip the Path
                 // or anything like that...
    FILENAME="%[!|Exe('%b\Macros\Input\GetBibFiles.edt');|];%-0"
    SEPARATOR=","     // allows comma separated list of bib files
    EXTENSION=".bib"  // possible extensions (only .bib is allowed)
    PATH="%P;%p;%@('BIBINPUTS');"
           // add additional locations for your bib files, eg.:
           //     "%P;%p;%$('TeX-Local');\bibtex;C:\TeX\bibtex\My Bib Files"
  // BibLaTeX bibliography directives
  DIRECTIVE="\addbibresource??{??}"
    FILENAME="%[!|Exe('%b\Macros\Input\GetBibFiles.edt');|];%-0"
    EXTENSION="*;.bib"
    PATH="%P;%p;%@('BIBINPUTS');"
  DIRECTIVE="\addglobalbib??{??}"
    FILENAME="%[!|Exe('%b\Macros\Input\GetBibFiles.edt');|];%-0"
    EXTENSION="*;.bib"
    PATH="%P;%p;%@('BIBINPUTS');"
  DIRECTIVE="\addsectionbib??{??}"
    FILENAME="%[!|Exe('%b\Macros\Input\GetBibFiles.edt');|];%-0"
    EXTENSION="*;.bib"
    PATH="%P;%p;%@('BIBINPUTS');"
  // Glossaries Support
  DIRECTIVE="\loadglsentries??{??}"
    CAPTION="%?" // Change this if you want to strip the Path
                 // or anything like that...
    EXTENSION="*;.tex"  // possible extensions for glossary files
    PATH="%P;%p;%@('TEXINPUTS');"
    ICON="Thesaurus" // Change the default TeX Document Icon
  // Extended Input for import.sty (example)
  DIRECTIVE="\import{?}{?}"
    FILENAME="%[!|Exe('%b\Macros\Input\IncludeFrom.edt');|];%-0"
    EXTENSION="*;.tex"
    PATH="%P;%p;%@('TEXINPUTS');"
  DIRECTIVE="\includefrom{?}{?}"
    FILENAME="%[!|Exe('%b\Macros\Input\IncludeFrom.edt');|];%-0"
    EXTENSION=".tex"
    PATH="%P;%p;%@('TEXINPUTS');"
  // Verbatim Input Directives
  DIRECTIVE="\lstinputlisting[????]{?}"
    EXTENSION="*;.tex"
    PATH="%P;%p;%@('TEXINPUTS');"
    VERBATIM=1
  DIRECTIVE="\lstinputlisting{?}"
    EXTENSION="*;.tex"
    PATH="%P;%p;%@('TEXINPUTS');"
    VERBATIM=1
  // Custom Input Directive Comment (should everything else fail):
  DIRECTIVE="%BIB{?}"
    EXTENSION="*;.bib"
    PATH="%P;%p;%@('BIBINPUTS');"
  DIRECTIVE="%INC{?}"
    EXTENSION="*;.tex"
    PATH="%P;%p;%@('TEXINPUTS');"
  DIRECTIVE="%INPUT ""?"""
    EXTENSION="*;.tex"
    PATH="%P;%p;%@('TEXINPUTS');"
END="TeX"

INPUT="DTX"
  MODE_FILTER="DTX"
  MAX_TREE_DEPTH=1
  OPEN_ON_DBL_CLICK=1
  LINE_START="%"
  BEGINNING_OF_LINE_ONLY=1
  CASE_SENSITIVE=1
  IGNORE_COMMENTS=1
  IGNORE_VERBATIM=1
  FILE_MUST_EXIST=0
  ALLOW_RECURSIVE_INCLUSION=0
  ALLOW_MULTIPLE_SIBLINGS_INCLUSION=0
  ALLOW_MULTIPLE_INCLUSION=1
  INCLUDE_TYPE_FILTER="*"
  RECURSE_TYPE_FILTER="tex;dtx"
  DIRECTIVE="\include{""?""}"
    EXTENSION=".tex"
    PATH="%P;%p;%@('TEXINPUTS');"
  DIRECTIVE="\include{?}"
    EXTENSION=".tex"
    PATH="%P;%p;%@('TEXINPUTS');"
  DIRECTIVE="\input{""?""}"
    EXTENSION="*;.tex"
    PATH="%P;%p;%@('TEXINPUTS');"
  DIRECTIVE="\input{?}"
    EXTENSION="*;.tex"
    PATH="%P;%p;%@('TEXINPUTS');"
  DIRECTIVE="\input ""?"""
    EXTENSION="*;.tex"
    PATH="%P;%p;%@('TEXINPUTS');"
  DIRECTIVE="\input ?"
    EXTENSION="*;.tex"
    PATH="%P;%p;%@('TEXINPUTS');"
  DIRECTIVE="\bibliography{?}"
    EXTENSION=".bib"
    PATH="%P;%p;%@('BIBINPUTS');"
  DIRECTIVE="\lstinputlisting[????]{?}"
    EXTENSION="*;.tex"
    PATH="%P;%p;%@('TEXINPUTS');"
    VERBATIM=1
  DIRECTIVE="\lstinputlisting{?}"
    EXTENSION="*;.tex"
    PATH="%P;%p;%@('TEXINPUTS');"
    VERBATIM=1
END="DTX"

INPUT="HTML"
  MODE_FILTER="HTML;XML;PHP|DATA;HHC;XWE;HTM"
  MAX_TREE_DEPTH=9
  OPEN_ON_DBL_CLICK=1
  BEGINNING_OF_LINE_ONLY=0
  CASE_SENSITIVE=0
  IGNORE_COMMENTS=1
  IGNORE_VERBATIM=1
  FILE_MUST_EXIST=1
  ALLOW_RECURSIVE_INCLUSION=0
  ALLOW_MULTIPLE_SIBLINGS_INCLUSION=0
  ALLOW_MULTIPLE_INCLUSION=0
  INCLUDE_TYPE_FILTER="html;htm;xml;php;txt;css"
  RECURSE_TYPE_FILTER="html;htm;xml;php"
  DIRECTIVE="<!--INCLUDE=""?""-->"
  DIRECTIVE="<a href=""?"""
  DIRECTIVE="<frame src=""?"""
END="HTML"

// Index.html:
// don't recurse if navigation bar is repeated in all HTML files
// or else you get deeply nested tree with no siblings.
// Use HTM Submode for Index.html to get a better tree for simple HTML web site!
INPUT="HTML-INDEX"
  MODE_FILTER="HTM"
  MAX_TREE_DEPTH=9
  OPEN_ON_DBL_CLICK=1
  BEGINNING_OF_LINE_ONLY=0
  CASE_SENSITIVE=0
  IGNORE_COMMENTS=1
  IGNORE_VERBATIM=1
  FILE_MUST_EXIST=1
  ALLOW_RECURSIVE_INCLUSION=0
  ALLOW_MULTIPLE_SIBLINGS_INCLUSION=0
  ALLOW_MULTIPLE_INCLUSION=0
  INCLUDE_TYPE_FILTER="html;htm;xml;php;txt;css"
  // No recursing and process TOC in main file first
  // and then included files: "???"
  RECURSE_TYPE_FILTER="???"
  PUSH="<!--UL-->"
  POP="<!--/UL-->"
  DIRECTIVE="<!--INCLUDE=""?""-->"
  DIRECTIVE="<a href=""?"""
END="HTML-INDEX"

// HTML Help Compiler:
// Directives are placed in HHC file!
INPUT="HHC"
  MODE_FILTER="HHC"
  MAX_TREE_DEPTH=1
  OPEN_ON_DBL_CLICK=1
  BEGINNING_OF_LINE_ONLY=1
  CASE_SENSITIVE=0
  IGNORE_COMMENTS=1
  IGNORE_VERBATIM=1
  FILE_MUST_EXIST=1
  ALLOW_RECURSIVE_INCLUSION=0
  ALLOW_MULTIPLE_SIBLINGS_INCLUSION=0
  ALLOW_MULTIPLE_INCLUSION=0
  INCLUDE_TYPE_FILTER="*"
  RECURSE_TYPE_FILTER="?"
  PUSH="<UL>"
  POP="</UL>"
  DIRECTIVE="<!--INCLUDE=""?""-->"
  DIRECTIVE="<LI>?<OBJECT type=""text/sitemap"">???"+
            "<param name=""Local""?value=""?#"
  DIRECTIVE="<LI>?<OBJECT type=""text/sitemap"">???"+
            "<param name=""Local""?value=""?"""
END="HHC"

// MetaPost Files
INPUT="MetaPost"
  MODE_FILTER="MetaPost|AUX"
  MAX_TREE_DEPTH=1
  OPEN_ON_DBL_CLICK=1
  BEGINNING_OF_LINE_ONLY=1
  CASE_SENSITIVE=1
  IGNORE_COMMENTS=1
  IGNORE_VERBATIM=1
  FILE_MUST_EXIST=0
  ALLOW_RECURSIVE_INCLUSION=0
  ALLOW_MULTIPLE_SIBLINGS_INCLUSION=0
  ALLOW_MULTIPLE_INCLUSION=1
  INCLUDE_TYPE_FILTER="*"
  RECURSE_TYPE_FILTER="mp"
  DIRECTIVE="input ""?"""
    EXTENSION="*;.mp"
    PATH="%P;%p;%@('MPINPUTS');;%$('TeX-Root');\metapost//;"+
         "%$('TeX-Root');\texmf-dist\metapost//"
  DIRECTIVE="input ?;"
    EXTENSION="*;.mp"
    PATH="%P;%p;%@('MPINPUTS');;%$('TeX-Root');\metapost//;"+
         "%$('TeX-Root');\texmf-dist\metapost//"
  DIRECTIVE="input ?"
    EXTENSION="*;.mp"
    PATH="%P;%p;%@('MPINPUTS');;%$('TeX-Root');\metapost//;"+
         "%$('TeX-Root');\texmf-dist\metapost//"
END="MetaPost"

// MetaFont Files
INPUT="MetaFont"
  MODE_FILTER="MetaFont"
  MAX_TREE_DEPTH=1
  OPEN_ON_DBL_CLICK=1
  BEGINNING_OF_LINE_ONLY=1
  CASE_SENSITIVE=1
  IGNORE_COMMENTS=1
  IGNORE_VERBATIM=1
  FILE_MUST_EXIST=0
  ALLOW_RECURSIVE_INCLUSION=0
  ALLOW_MULTIPLE_SIBLINGS_INCLUSION=0
  ALLOW_MULTIPLE_INCLUSION=1
  INCLUDE_TYPE_FILTER="*"
  RECURSE_TYPE_FILTER="mf"
  DIRECTIVE="input ""?"""
    EXTENSION="*;.mf"
    PATH="%P;%p;%@('MFINPUTS');;%$('TeX-Root');\metafont//;"+
         "%$('TeX-Root');\texmf-dist\metafont//"
  DIRECTIVE="input ?;"
    EXTENSION="*;.mf"
    PATH="%P;%p;%@('MFINPUTS');;%$('TeX-Root');\metafont//;"+
         "%$('TeX-Root');\texmf-dist\metafont//"
  DIRECTIVE="input ?"
    EXTENSION="*;.mf"
    PATH="%P;%p;%@('MFINPUTS');;%$('TeX-Root');\metafont//;"+
         "%$('TeX-Root');\texmf-dist\metafont//"
END="MetaFont"

// NSIS Scripts
INPUT="NSIS"
  MODE_FILTER="NSIS"
  MAX_TREE_DEPTH=1
  OPEN_ON_DBL_CLICK=1
  BEGINNING_OF_LINE_ONLY=1
  CASE_SENSITIVE=0
  IGNORE_COMMENTS=1
  IGNORE_VERBATIM=1
  FILE_MUST_EXIST=0
  ALLOW_RECURSIVE_INCLUSION=0
  ALLOW_MULTIPLE_SIBLINGS_INCLUSION=0
  ALLOW_MULTIPLE_INCLUSION=1
  INCLUDE_TYPE_FILTER="*"
  RECURSE_TYPE_FILTER="nsi;nsh"
  DIRECTIVE="!include?"
    FILENAME="%[!|Exe('%b\Macros\Input\NSISInclude.edt');|];%-0"
    PATH="%P;%$('NSIS-Root');\Include"
END="NSIS"

// INI Scripts
INPUT="INI"
  MODE_FILTER="DATA:INI:EDT"
  MAX_TREE_DEPTH=1
  OPEN_ON_DBL_CLICK=1
  BEGINNING_OF_LINE_ONLY=1
  CASE_SENSITIVE=0
  IGNORE_COMMENTS=1
  IGNORE_VERBATIM=1
  FILE_MUST_EXIST=0
  ALLOW_RECURSIVE_INCLUSION=0
  ALLOW_MULTIPLE_SIBLINGS_INCLUSION=0
  ALLOW_MULTIPLE_INCLUSION=1
  INCLUDE_TYPE_FILTER="ini"
  RECURSE_TYPE_FILTER="ini"
  DIRECTIVE="%%INCLUDE=""?"""
    PATH="%b;%B"
  DIRECTIVE="%INCLUDE=""?"""
    PATH="%b;%B"
END="INI"

// Data Files
INPUT="DATA"
  MODE_FILTER="DATA|TeX;MetaPost;MetaFont;NSIS;HTML;XML;PHP;XWE"
  MAX_TREE_DEPTH=1
  OPEN_ON_DBL_CLICK=1
  BEGINNING_OF_LINE_ONLY=1
  CASE_SENSITIVE=1
  IGNORE_COMMENTS=1
  IGNORE_VERBATIM=1
  FILE_MUST_EXIST=1
  ALLOW_RECURSIVE_INCLUSION=0
  ALLOW_MULTIPLE_SIBLINGS_INCLUSION=1
  ALLOW_MULTIPLE_INCLUSION=1
  INCLUDE_TYPE_FILTER="*"
  RECURSE_TYPE_FILTER="?"
  PUSH=">>>"
  POP="<<<"
  DIRECTIVE="\input ""?"""
END="DATA"

// Other files (a comment)...
INPUT="ASCII"
  MODE_FILTER="*|TeX;MetaPost;MetaFont;NSIS;HTML;XML;PHP;XWE"
  MAX_TREE_DEPTH=9
  OPEN_ON_DBL_CLICK=1
  BEGINNING_OF_LINE_ONLY=1
  CASE_SENSITIVE=1
  IGNORE_COMMENTS=1
  IGNORE_VERBATIM=1
  FILE_MUST_EXIST=1
  ALLOW_RECURSIVE_INCLUSION=0
  ALLOW_MULTIPLE_SIBLINGS_INCLUSION=1
  ALLOW_MULTIPLE_INCLUSION=1
  INCLUDE_TYPE_FILTER=""
  RECURSE_TYPE_FILTER=""
  DIRECTIVE="\input ""?"""
  DIRECTIVE=";input ""?"""
  DIRECTIVE=".input ""?"""
  DIRECTIVE=">input ""?"""
  DIRECTIVE="!input ""?"""
  DIRECTIVE="%input ""?"""
  DIRECTIVE="//input ""?"""
END="ASCII"

// ===============================================================================

[END]
