Use editplus to build your own ide

Source: Internet
Author: User
Because it is somewhat Aesthetic Fatigue for Microsoft notepad, it is often replaced by editplus or ultraedit32.
These two text editors are much more powerful than notepad. For programmers, this article only describes their two features and uses them to build our own ide. I hope it will be useful to everyone.

1. program highlighted
The programmer has been in a critical state for a long time. The monotonous color of notepad can be replaced by a highlighted font, or the stress can be reduced.
Editplus's program keywords and variables are all configured through a. STX file.
After editplus is installed, it supports several languages by default, such as C/C ++, Java, HTML, C #, Perl, PHP, etc...
Of course, some of them are temporarily unavailable, such as ASM, but you can download them from the official website. More support is provided on the official website. (If you want to create a STX, open a STX to imitate it :))
Download the ASM. STX file, and add a file type in <tool> -- <preference> -- <File> -- <syntax>, description to ASM, and file extension to ASM,
Then, specify the path of the STX file you downloaded in the syntax file. now your program is "nice-looking. (if not, check whether the syntax coloring is selected .)

2. Configure user tools
Editplus. Some people say it has implemented all you can think of. It may be a bit exaggerated. You can try it.
If it is a simple text editing, you will inevitably need to open a command line after debugging and running the program, and then call the compiler, linker, or you may need CD before writing the program .. several times (: d), can you compile and run the program in editplus. (Of course, you have to prepare your own compilation and other tools). The answer is obvious.

Find the user tool configuration option and create a new group. The following uses Java as an example to name it a Java group.
(1) Add the compilation option: click Add tool, application, and menu text to write "jav( javac)"/* how do you name it */, the command points to your javac, parameter $ (filename), initial directory $ (filedir), select capture output, other default.
(2) run Java: Same as above. The menu text "Run (Java)". The command points to Java. For example, D: \ j2sdk1.4.2 _ 12 \ bin \ java.exe. The parameter $ (filenamenoext ),
/* Pay attention to using a file name without an extension. The reason is not to mention it. */. Other settings are the same as above.

Now, your program can be "born and killed" in editplus,/* I mean to finish and run */. after the program is written, select "jav( javac)" from the drop-down menu of the tool, and then "Run (Java)". The compilation and running status will be shown below. in addition, if a compilation error occurs, you can double-click it to jump to the wrong line. (if not, you can use a regular expression in the output mode to match the error to locate the error accurately .) now we have configured a small IDE. unfortunately, there is no "Debugger" for breakpoint and single step. however, similar to debug, if GDB is to be configured, there should be a solution. think about the specific method to use high IQ.

Also, what should I do if I want to open the Java API documentation?
Add a tool, select. CHM (depending on your help file), menu text "Java Document", file name "D: \ j2sdk1.4.2 _ 12 \ jdk1.5api _ Cn (_). CHM "(point to your help file ).
Now you don't need to double-click the CHM every time.

Let's take a look at our results:
1) Our program has color. If you are used to using notepad, try it. ^_^
2) Compile and run the program as long as it is a line. The shortcut also has. CTRL + 1? CTRL + 2?
3) Is there a program error? All right, double-click it to jump to the error line. modify it.
4) Are you looking at help? Row. CTRL + 3

What else? I hope you can use editplus to experience your life without notepad, compact editplus, and compact ide. You can simulate an editplus into various program development ides! You will say that the world of editplus is wonderful.

(Statement: The author did not receive any sponsorship from editplus before writing this article.: D, so I will add that ultraedit also has this function .)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.