User Tools

From EditPlus Wiki
Revision as of 15:30, 3 October 2005 by Wmjordan (Talk | contribs) (DotNet)

Jump to: navigation, search

This page exists a resource for user tool configurations frequently used in EditPlus.

For information on writing your own user tool to act as a text filter, see writing a text filter.

HTML

===Color Cop=== http://www.datastic.com/tools/colorcop/ Description: This is the best tool for determining what color is being used via a color picker. I use this all the time!
Posted By: Dean Householder

===FontLister=== http://www.theill.com/fl/ Description: Compares all the fonts on my system visually on the screen. (More useful for working with graphics than coding) I'm using version 2.0 which is freeware and does what I want.
Posted By: Dean Householder

Google Search (selection)

Description: Search's Google for the current selection.
Command: Maxthon.exe (Maxthon is found at http://www.maxthon.com/) Similar command can be used for other browsers.
Argument: http://www.google.com/search?q=$(CurSel)
Posted By: Brett Batie
Additional Info: If this fails to work for you, try putting $(CurSel) in quotes, like "$(CurSel)"

===External Browser Preview UserTool=== http://www.maxthon.com/ Description: Save current file, then Launch it in Maxthon tabbed browser.
Menu text: Maxthon Browser
Command: C:\Program Files\Maxthon\Maxthon.exe
Argument: file:///"$(FilePath)"
Initial directory: [leave blank]
Check: "Save open files"
Posted By: John Morse
Additional Info: This command is good for keeping the internal browser preview enabled in EditPlus, but still having the extra functionality of previewing your file in other browsers.

===HTML Tidy=== http://tidy.sourceforge.net/ Description: This will automatically clean up your HTML code to whatever standards you designate in the tidyconfig.txt file.
Command: tidy.exe -config tidyconfig.txt
Argument: "$(FilePath)"
Check: "Run as text filter"
Posted By: Dean Householder

DotNet

===Compile NAnt Projects=== http://nant.sourceforge.net Description: Compiles NAnt project for DotNet. Command: nant
Argument: $(CurSel)
Initial Directory: $(FileDir)
Check: "", "Save open files"
Posted By: 'Welman Jordan'

Java

===Java: to HTML converter (current file)=== http://www.java2html.de/ Description: Converts the source code of the current Java file to HTML.
Command: java -jar c:\path\to\java2html.jar -srcfile
Argument: $(FileName) -converter HTML -tabs 2 -style KAWA
Initial Directory: $(FileDir)
Check: "Close window on exit", "Save open files"
Posted By: Brett Batie

===Java: to HTML converter (run program)=== http://www.java2html.de/ Description: Runs the Java to HTML program.
Command: java -jar c:\path\to\java2html.jar
Posted By: Brett Batie

===Java: to HTML converter (all source in directory)=== http://www.java2html.de/ Description: converts all the source files in the files current directory to HTML.
Command: java -jar c:\programming\java2html\java2html.jar
Argument: -srcdir "$(FileDir)" -converter HTML -tabs 2 -style KAWA
Check: "Close window on exit", "Save open files"
Posted By: Brett Batie

===Java: Compiler=== http://java.sun.com/ Description: Compiles Java source code.
Command: c:\path\to\javac.exe
Argument: $(FileName)
Check: "Capture output", "Save open files"
Posted By: Brett Batie

===Java: JVM Runtime=== http://java.sun.com/ Description: Java Virtual Machine runtime that lets you execute your Java class files.
Command: c:\path\to\java.exe
Argument: $(FileNameNoExt)
Check: "Capture output"
Posted By: Brett Batie

===Java: JavaDoc=== http://java.sun.com/ Description: Generates HTML documentation on classes by extracting comments from the Java source code files.
Command: c:\path\to\javadoc.exe
Argument: -d "$(FileDir)\documentation" -quiet -public -version -author -linksource -link http://java.sun.com/j2se/1.4.2/docs/api/ $(FileName)
Initial Directory: $(FileDir)
Check: "Capture output"
Posted By: Brett Batie

===Java: Applet Viewer=== http://java.sun.com/ Description: Runs the applet viewer on the current file.
Command: c:\path\to\appletviewer.exe
Argument: $(FileName)
Initial Directory: $(FileDir)
Check: "Capture output"
Posted By: Brett Batie

===Java: API via CHM=== http://java.sun.com/docs/windows_format.html Description: Looks up the current word in the Java API CHM help file. Make sure when adding this you click Add Tool → HTML help file (*.chm)
Command: c:\path\to\jdk142.chm
Posted By: Brett Batie

===Java: API Online=== http://java.sun.com/j2se/1.4.2/download.html#docs Description: Opens the Java API web page. You can also download the API so you can view it without an internet connection.
Command: c:\path\to\Maxthon.exe (Maxthon is found at http://www.maxthon.com/) Similar command can be used for other browsers.
Argument: file:///C:/java_api_1.4.2/api/index.html
Posted By: Brett Batie

===Java: Source Format (Current File)=== http://jalopy.sourceforge.net/ Description: Formats Java source code.
Command: cmd.exe /c type
Argument: $(FileName) | java -jar c:\path\to\jalopy-console-1.0.4.jar 2>nul
Check: "Run as text filter"
Posted By: Brett Batie

===Java: Source Format (All Directories)=== http://jalopy.sourceforge.net/ Description: Formats Java source code.
Command: java.exe -jar c:\programming\jalopy\lib\jalopy-console-1.0.4.jar -r
Argument: "$(FileDir)"
Check: "Capture output"
Posted By: Brett Batie

Perl

Perl: Syntax Check

Description: Check perl syntax.
Command: c:\path\to\perl.exe -c
Argument: "$(FilePath)"
Check: "Capture output"
Posted By: James Kelly

Perl: Perldoc

Description: Runs Perldoc on the current file.
Command: c:\path\to\perldoc.bat
Argument: "$(FilePath)"
Check: "Capture output"
Posted By: James Kelly
Note: perldoc.bat is in the Perl\bin directory of the ActivePerl install directory.

=== Perl: Perltidy === http://perltidy.sourceforge.net/ Description: Runs Perltidy on the current file.
Command: c:\path\to\perl.exe "c:\path\to\perltidy"
Argument: "$(FilePath)" -st
Check: "Run as text filter"
Posted By: James Kelly
Note: You must copy Perltidy\lib\Perl to Perl\site\lib

PHP

PHP: syntax checker

Description: Checks php syntax.
Command: c:\path\to\php.exe -l
Argument: $(FileName)
Check: "Capture output", "Save open files"
Posted By: Brett Batie

===PHP: The Extended CHM Manual=== http://www.php.net/docs-echm.php Add Tool → HTML help file (*.chm) → Point to php_manual_en.chm
Description: This is great because I can put my cursor over a word and press CTRL+1 to open then offline manual right to that specific command. This version is greatly updated from the .hlp version. Be sure to run php_manual_prefs.exe to set the configuration how you like it. I recommend selecting the phpZ skin. It gives a lot of extra options such as a breadcrumb for easy navigation, "Navigate to this page online", seperated user comments from help example, etc.
Posted By: Dean Householder

Python

===Python: Python Runtime=== http://www.python.org/ Description: Python runtime that lets you execute your Python scripts.
Command: C:\path\to\python.exe
Argument: "$(FilePath)"
Initial Directory: $(FileDir)
Check: "Capture output", "Save open files"
Output Pattern:

  • Regular Expression: File "(.+)", line ([0-9]+)
  • Regular Expression File name tag: Tagged Expression 1
  • Regular Expression Line: Tagged Expression 2

Scripting

VBScript

Description: Executes your VBScript script
Command: cscript.exe //nologo
Argument: "$(FilePath)"
Initial directory: $(FileDir)
Posted by: John Röthlisberger

Description: Debugs your VBScript script
Command: cscript.exe //nologo //d //x
Argument: "$(FilePath)"
Initial directory: $(FileDir)
Posted by: Michael Jones

File Management

DOS (Current Location)

Description: Opens DOS in the directory of the currently open file.
Command: cmd.exe (or if on W95/98/ME, command.com)
Initial Directory: $(FileDir)
Posted By: Brett Batie

===ExamDIFF=== http://www.prestosoft.com/ps.asp?page=edp_examdiff (freeware version) Description: This compares the differences between two versions of a file. Answers the question: These look the same but which lines are different?
Posted By: Dean Householder

Explorer (Current Location)

Description: Opens windows explorer in the location of the current open file. Works great for programs like Tortoise SVN.
Command: %systemroot%\explorer.exe /e,/root,\local disk,
Argument: $(FileDir)
Posted By: Brett Batie

===WinMerge: Compare two open files=== http://winmerge.org/ Description: Shows the difference between two open files.
Command: C:\Programming\WinMerge\WinMergeU.exe
Argument: $(WindowList)
Posted By: Brett Batie

Version Control

Microsoft Visual SourceSafe

EditPlus user tool commands to interface with command-line version of Microsoft Visual SourceSafe

Description: Display name of current VSS project
Menu text: Current Project
Command: C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\SS.EXE
Argument: project
Initial directory: $(FileDir)
Check: "Capture output"

Description: Set current VSS project
Menu text: Set Project
Command: C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\SS.EXE
Argument: cp
Initial directory: $(FileDir)
Check: "Capture output", "Prompt for arguments"

Description: Create a new VSS project and set as current
Menu text: Create / Set Project
Command: C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\SS.EXE
Argument: create -c- -s
Initial directory: $(FileDir)
Check: "Capture output", "Prompt for arguments"

Description: Set VSS project working folder
Menu text: Set Working Folder
Command: C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\SS.EXE
Argument: workfold "$(FileDir)"
Initial directory: $(FileDir)
Check: "Capture output"

Description: List files in VSS project
Menu text: Directory
Command: C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\SS.EXE
Argument: dir -c
Initial directory: $(FileDir)
Check: "Capture output"

Description: Display status of current file in VSS
Menu text: Status
Command: C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\SS.EXE
Argument: status "$(FileName)"
Initial directory: $(FileDir)
Check: "Capture output"

Description: Get a file from VSS to working folder
Menu text: Get File
Command: C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\SS.EXE
Argument: get
Initial directory: $(FileDir)
Check: "Capture output", "Prompt for arguments"

Description: Get latest version of current EditPlus file from VSS, overwriting existing file on disk
Menu text: Get Latest Version
Command: C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\SS.EXE
Argument: get "$(FileName)"
Initial directory: $(FileDir)
Check: "Capture output", "Save open files"

Description: Check out current EditPlus file from VSS, overwriting existing file on disk
Menu text: Check Out
Command: C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\SS.EXE
Argument: checkout "$(FileName)" -c-
Initial directory: $(FileDir)
Check: "Capture output", "Save open files"

Description: Display differences between current EditPlus file and version in VSS
Menu text: Difference
Command: C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\SS.EXE
Argument: diff "$(FileName)" -ds
Initial directory: $(FileDir)
Check: "Capture output", "Save open files"

Description: Undo checkout of current EditPlus file from VSS
Menu text: Undo Checkout
Command: C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\SS.EXE
Argument: undocheckout "$(FileName)" -p
Initial directory: $(FileDir)
Check: "Capture output", "Save open files"

Description: Check current EditPlus file into VSS
Menu text: Check In
Command: C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\SS.EXE
Argument: checkin "$(FileName)" -c- -p
Initial directory: $(FileDir)
Check: "Capture output", "Save open files"

Description: Check current EditPlus file into VSS but keep checked out
Menu text: Check In / Keep Checked Out
Command: C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\SS.EXE
Argument: checkin "$(FileName)" -c- -k -p
Initial directory: $(FileDir)
Check: "Capture output", "Save open files"

Description: Add current EditPlus file into VSS
Menu text: Add File
Command: C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\SS.EXE
Argument: add "$(FileName)" -c-
Initial directory: $(FileDir)
Check: "Capture output", "Save open files"

Description: Add current EditPlus file into VSS and check out
Menu text: Add File / Check Out
Command: C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\SS.EXE
Argument: add "$(FileName)" -c- -k
Initial directory: $(FileDir)
Check: "Capture output", "Save open files"

Posted By: Michael Jones

CS-RCS

EditPlus user tool commands to interface with CS-RCS

Description: Create current EditPlus file in CS-RCS
Menu text: Create
Command: D:\Program Files\ComponentSoftware\CS-RCS\System\csrcs.exe
Argument: Create $(FilePath)
Check: "Capture output", "Save open files"

Description: Display status of current EditPlus file in CS-RCS
Menu text: Status
Command: D:\Program Files\ComponentSoftware\CS-RCS\System\csrcs.exe
Argument: Status $(FilePath)
Check: "Capture output"

Description: Display status of current EditPlus file in CS-RCS
Menu text: History
Command: D:\Program Files\ComponentSoftware\CS-RCS\System\csrcs.exe
Argument: History $(FilePath)
Check: "Capture output"

Description: Check out current EditPlus file from CS-RCS, overwriting existing file on disk
Menu text: Check Out
Command: D:\Program Files\ComponentSoftware\CS-RCS\System\csrcs.exe
Argument: CheckOut $(FilePath)
Check: "Capture output", "Save open files"

Description: Check current EditPlus file into CS-RCS
Menu text: Check In
Command: D:\Program Files\ComponentSoftware\CS-RCS\System\csrcs.exe
Argument: CheckIn $(FilePath)
Check: "Capture output", "Save open files"

Posted By: Michael Jones

Miscellaneous

Function List

Description: I use this to show functions and classes in the output window. This will work on winXP or win2000. The regular expression may also need modified to your preference. Note: The function window Ctrl+F11 can also be used but this tool will allow you to view both your code and the functions at the same time.
Command: findstr /R /I /N "public.*{$ protected.*{$ private.*{$ static.*{$" $(FileName)
Argument: $(FileName)
Check: "Capture output"
Output Pattern:

  • Regular Expression: ^([0-9]+):
  • Regular Expression Line: Tagged Expression 1

Posted By: Brett Batie

Python Function List

Based on the above:

Command: findstr /n /o /r "\<def\>"
Argument: $(FilePath)
Check: "Capture output"
Output Pattern:

  • Regular Expression: ^([0-9]+):([0-9]+):
  • File name: None
  • Line: Tagged Expression 1
  • Column: Tagged Expression 2

Posted By: Igor Kogan

===JRuler=== http://www.spadixbd.com/freetools/jruler.htm Description: I use the standard free ruler to measure the size of images, tables, content area, etc. It adds a ruler to your screen to measure anything!
Posted By: Dean Householder

===CoolRuler=== http://legacy.sheltonbbs.com/~jmmorse/CoolRuler.rar Description: A Free full featured pixel/inch/etc. Ruler. Much like JRuler, but with more features.
Posted By: John Morse

===Markdown Syntax=== http://daringfireball.net/projects/downloads/Markdown_1.0.1.zip Description: Markdown is a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML). Great for writing blog posts.
Command: perl Markdown.pl
Check: "Run as text filter"
Posted by: Ankit Solanki.

N.B. You will need to specify the location of both perl and Markdown.pl - EditPlus will not find them if they are in the path.

Make file writeable

Description: clears the read-only file attribute on the current file.
Command: attrib.exe
Argument: -R "$(FilePath)"
Check: "Close window on exit"