Inverse search with SumatraPDF and WinEdt completion plugin

SumatraPDF supports forward and inverse search when using WinEdt6 or TexnicCenter Latex Editors...

Please note that all paths have to be changed to suit your needs!

Get a modified Sumatra Version here:
http://william.famille-blum.org/software/sumatra/index.html

It allows to specify the inverse search command!
This was the only way, to make inverse search working for me with WinEdt.

Following inverse search commands are used:

WinEdt:
"C:\Software\Office-Bildbearbeitung\Latex\WinEdt6\winedt.exe" "[Open(|%f|);SelPar(%l,8)]"

TexnicCenter
"C:\Software\Office-Bildbearbeitung\Latex\TeXnicCenterAlpha\TeXnicCenter.exe" /ddecmd "[goto('%f', '%l')]"

However, i noticed that it is also saved in the sumatrapdfprefs.dat file, so it may be changed there also in the standard Sumatra Version, or passed with the command line, which did not work for me with WinEdt.

On blum's site, there are also further details upon setting up the forward and inverse search.

I made the following changes to the MainMenu option, just search for the items:
ITEM="PDFTeXify"
CAPTION="PDFTe&Xify"
IMAGE="TeXPDFTeXify"
SAVE_INPUT=1
MACRO="Exe('%b\Exec\TeX\PDFTeXify.edt');"
SHORTCUT="16503::Ctrl+F8"
REQ_FILTER=:"%!M=TeX"|"%!M=TeX:STY"

ITEM="PDF_Search"
CAPTION="PDF &Search"
IMAGE="AcroFind"
MACRO="Exe('%b\Exec\PDF\PDF Search.edt');"
SHORTCUT="116::F5"
REQ_FILTER="%P\%N.pdf*%P\%N.synctex"
REQ_DOCUMENT=1
REQ_FILE=1

The code completion plugin was not working with WinEdt6, so i added the shortcuts manually...

Just insert them at the end of the MainMenu.ini and execute the script!
MENU="Extras"
CAPTION="Extras"
ITEM="$Command_Completion"
CAPTION="Command Completion"
MACRO="Exe('%B\Plugins\Complete\complete.edt');"
SHORTCUT="16473::Ctrl+Y"
REQ_DOCUMENT=1
ITEM="$Command_Completion"
CAPTION="Environment Completion"
MACRO="Exe('%B\Plugins\Complete\env.edt');"
SHORTCUT="24665::Shift+Ctrl+Y"
REQ_DOCUMENT=1
ITEM="$Command_Completion"
CAPTION="Macro Completion"
MACRO="Exe('%B\Plugins\Complete\macro.edt');"
SHORTCUT="32857::Alt+Y"
REQ_DOCUMENT=1
ITEM="$WinEdt_Command_Completion"
CAPTION="WinEdt Command Completion"
MACRO="Exe('%B\Plugins\Complete\cmd.edt');"
SHORTCUT="41049::Shift+Alt+Y"
REQ_DOCUMENT=1
ITEM="$Compile_Asy"
CAPTION="Compile Asy"
MACRO="Exe('%B\Plugins\Complete\asymptote.edt');"
SHORTCUT="49221::Ctrl+Alt+E"
REQ_DOCUMENT=1
ITEM="$Comment"
CAPTION="Comment"
MACRO="InsertString('%%');"
SHORTCUT="49217::Ctrl+Alt+A"
REQ_DOCUMENT=1
ITEM="$Uncomment"
CAPTION="Uncomment"
MACRO="RemoveString('%%');"
SHORTCUT="49241::Ctrl+Alt+Y"
REQ_DOCUMENT=1
END
The plugin can be found on the WinEdt page:
http://www.winedt.org/Plugins/

An interface to asymptote has also been added, it needs the following files:

asymptote.edt:

GlobalMark;
Run('C:\Software\Office-Bildbearbeitung\Latex\Asymptote\asy.bat -batchView "%p\%n.asy" -o "%p\%n.eps"');
End;

And the batch file (pauses if error found):

@ECHO OFF
set CYGWIN=nodosfilewarning
"C:\Software\Office-Bildbearbeitung\Latex\Asymptote\asy.exe" %*
if %errorlevel% == 0 exit /b
echo.
PAUSE

A note to WinEdt: Use PdfTexify command, since it runs all commands as often as needed.