Tool integration-compiler integration examples (Java, Borland C ++, Visual C ++, Inno Setup, NSIs)
On the "Tools> Parameter Selection> User Tools" option page, set steps
① Set the group name. You can leave it unspecified here.
② Click "add tool> application" and make the following settings
③ Various parameters similar to "$ (filepath)" can be obtained from the arrow drop-down menu on the right of the text box. The specific meanings are as follows:
Parameter description
$ (Filepath) file path (full name of the file, including the Directory and file name)
$ (Filedir) file directory (without file name)
$ (Filename) file name (without directory)
$ (Filenamenoext) file name without extension (without directory)
$ (Fileext) Extension (current file)
$ (Projectname) project name (current project name)
$ (Curline) current row number (the row number at the cursor position)
$ (Curcol) Current column number (column number at the cursor position)
$ (Cursel) Current text (insert selected text)
$ (Curword) current word (insert current word)
$ (Windowlist) display the current window list and select a specific file
Example 1. Java compiler
Menu text: Java compiler
Command: C :\\ Java \ bin \ javac.exe
Parameter: "$ (filepath )"
Initial Directory: $ (filedir)
Capture output: Enabled
To run compiled Java class files, you can perform the following settings:
Menu text: Java
Command: C: \ Java \ bin \ java.exe
Parameter: $ (filenamenoext)
Initial Directory: $ (filedir)
The "command" part should be replaced with the actual Java interpreter path.
Example 2. Borland C ++
Menu text: Borland C
Command: C :\\ BC \ bin \ bcc32.exe
Parameter:-ic: \ BC \ include-LC: \ BC \ Lib-N $ (filedir) $ (filepath)
Initial Directory: C :\\ BC \ bin
Capture output: Enabled
Example 3. Visual C ++
Menu text: Visual C ++
Command: C: \ msdev \ vc98 \ bin \ cl.exe
Parameter: "$ (filepath )"
Initial Directory: $ (filedir)
Capture output: Enabled
Example 4. Inno Setup
Menu text: Compile Inno
Command: C :\\ Program Files \ Inno Setup 4 \ compil32.exe"
Parameter:/CC $ (filename)
Initial Directory: $ (filedir)
Capture output: Enabled
Example 5. NSIS
Menu text: Compile NSIS
Command: C :\\ NSIs \ makensis.exe
Parameter: $ (filename)
Initial Directory: $ (filedir)
Capture output: Enabled
Example 6. C #
Menu text: compile C #
Command: C :\\ WINDOWS \ Microsoft. NET \ framework \ v1.0.3705 \ csc.exe
Parameter: $ (filename)
Initial Directory: $ (filedir)
Capture output: Enabled
In the preceding settings, the absolute path of the compiler must be used in the command section.
After setting, you can run the corresponding tool in the "Tools" menu. The running result is displayed in the output window at the bottom. You can also run the tool by pressing the shortcut key (CTRL + 0-9, or you can use the shortcut button in the "user toolbar.
To run the compiled *. EXE file, you can make the following settings (the executable file must have the same name as the compiled file ):
Menu text: Run
Command: $ (filenamenoext)
Parameters:
Initial Directory: $ (filedir)
Connect editplus to vc6.0
Tool/configuration tool/
In the displayed Parameter Selection window, change "group name" to debug C/C ++, and add the following two "Applications" to "add tools ":
1,
Menu text: Compile
Command: "E: \ Program Files \ Microsoft Visual Studio \ vc98 \ bin \ Cl. EXE"
Parameter: "$ (filepath )"
Start Directory: $ (filedir)
Capture output: Check
2,
Menu text: Run
Command: $ (filenamenoext)
Parameters:
Start Directory: $ (filedir)
3. (optional) do not compile and execute each modification. Use batch processing to execute commands in 1 and 2.
Menu text: Compile and run
Command: "E: \ Program Files \ Microsoft Visual Studio \ vc98 \ bin \ Run. Bat"
Parameter: "$ (filenamenoext )"
Start Directory: $ (filedir)
-----------------------------------------
The content of the run. BAT file is as follows:
If exist % 1.C cl.exe % 1.c
If exist % 1.cpp cl.exe % 1.cpp
CLS
Secrets 1.exe
Pause