1. Why configure EditPlus so that it can compile and run Java, Python, C + + and other programs?
EditPlus is a lightweight (about 2M) text editor that, in real-world development, only needs to be associated with the appropriate compilation tools to be a lightweight IDE. EditPlus itself does not have the ability to compile and run the program, Java, Python, C + + will usually choose Eclipse, MS VC + + and other Ides, but its powerful features behind the "Start Slow", "resource-intensive" shortcomings. Of course, this is also very normal, the fish and bear paw has always been difficult to get both. With this big guy to develop the company's large projects, it is naturally handy to use, but for the general small program, it is a little "overkill" feeling. However, whether in the work or in peacetime to learn, write a small program, usually as long as a CPP file can test the program is still a regular thing. So every time you open VS2010 to write a small test program, it is some "luxury". Configuring EditPlus allows it to compile and run some short test programs, or to run these programs while looking at programs written by others, rather than just using EditPlus as a text editor.
2. EditPlus Configuring the Java compilation Environment
Install the JDK and EditPlus first, then configure EditPlus
Click "Tools" in the toolbar, select "Perferences", select "Tools-and User tools" on the left, and the groups and items will display Group1 by default ,Click "Group Name" to modify it to "Java compilation environment"
Click "Add Tools":
Menu Text:javac
Command:e:\program Files\android\java\jdk1.8.0_05\bin\javac.exe
Argument: $ (FileName)
Initial diretory: $ (filedir)
action:capture Output
command is the path of the Javac.exe located in the installation directory of the JDK, which modifies itself according to the installation location of your computer. The configuration of the Javac tool is as follows:
Click "Add Tools":
Menu Text:java
Command:e:\program Files\android\java\jdk1.8.0_05\bin\java.exe
Argument: $ (filenamenoext)
Initial diretory: $ (Filedir)
Action:none
command is the path of the Java.exe under the installation directory of the JDK, in the same folder as the Javac.exe. As shown below:
After the configuration is complete, write a Java program:
Ctrl + 1: Compiling
Ctrl + 2: Run
Double-click the error message on one of the errors, EditPlus will automatically locate the error line.
3. EditPlus Configuring the Python compilation Environment
First install the Python interpreter and EditPlus, then configure EditPlus
Similar to configuring the Java compilation environment, click Tools in the toolbar, select Perferences, select Tools-and User tools on the left, groups and items will display Group2 by default, click Group Name "Modify it to" Python compilation Environment "
Click "Add Tools":
Menu Text:python
Command:d:\program Files\python27\python.exe
Argument: $ (FileName)
Initial diretory: $ (Filedir)
Action:capture output
command is the path where the Python.exe is located and modifies itself according to the installation location of your computer. The Python tool is configured as follows:
After the configuration is complete, write a python program, Ctrl + 1 to run.
4. EditPlus Configuring A/C + + compilation environment
Applicable to VS2008, VS2009, VS2010 and other versions, VC6 version is not applicable. EditPlus associated Ms VC compiler cl.exe can be.
First make sure that you have a version of VS2010 installed on your computer and find cl.exe in its installation path (such as D:\Program Files\Microsoft Visual Studio 10.0\vc\bin), which is the tool for compiling C/ Then create a new Cl.bat file in this directory, open with EditPlus or Notepad, edit the contents as follows and Save: Notice to replace Vs100comntools with the corresponding version of your compiler, such as 08 to vs80comntools,09 version to Vs90comntools, other versions You can see what the specifics should be replaced in the environment variables.
1 echo off2Pager"%vs100comntools%vsvars32.bat "3If"%1 "= =" "Goto usage4Cl.exe"%1 "5 goto:eof6 7 : Usage8 Echo:9echo Error using Cl.bat. The correct usage is:TenEcho%0Filename One Echo: A echo For example: -Echo%0c:/Example.cpp -Goto:eof
Next Configure EditPlus, click "Tools" in the toolbar, select "Perferences", select "Tools-and User tools" on the left, the default is groups and items will show Group3, click "Group Name "To modify it to" C + + compilation Environment "
Click "Add Tools":
Menu Text:compile
Command:d:\program Files\Microsoft Visual Studio 10.0\vc\bin\cl.bat
Argument: $ (FilePath)
Initial diretory: $ (Filedir)
Action:capture output
command is the path where the Cl.bat is located and modifies itself according to the installation location of your computer. The configuration of the Compile tool is as follows:
Click "Add Tools":
Menu Text:run
Command: $ (filenamenoext)
Argument:
Initial diretory: $ (Filedir)
Action:none
The Run tool is configured as shown in the following:
After the configuration is complete, write a C + + program:
Ctrl + 1: Compiling
Ctrl + 2: Run
Note: When configuring more than one compilation environment in a PC, such as Java, Python, C + +, the compilation runner needs to select its corresponding tool group in the Tools->user tool Group (shortcut keys available)!!!
EditPlus Configuring the Java, Python, C + + (VS2010-based) compilation environment