Working with EditPlus Software

0

Working with EditPlus Software

EditPlus is an editor software that supports developing java, c, c++, HTML, PHP, perl programs including a pain text file. While it can serve as a good notepad replacement, it also offers many powerful features for wev page authors and programmers.

Advantages of EditPlus:
EditPlus software provides more features then notepad. It provides below features
1.It has colorful screen, It shows
a. Keywords in Blue color
b. Predefined classes in Red color
c. Strings and literals in Pink color
2.It automatically manages code indentation.
3.Can add ".java" extension automatically.
4. We can compile and execute java program directly from Editplus editor.
5. It also has auto save option.
6. Can display line numbers.


Installing EditPlus software:
It is a tril version software you can download it from its home page 
a. You will be downloading "epp331.exe" file.
b. Double click this exe file, its installation will be started.
c. Click on Finish button at last window that shows EditPlus installation is completed.
After istallation you will find EditPlus shortcut image on desktop.

Double click on it, below window is opened.





Creating a java file in Editplus
Click on File -> new -> java


It Opens java editor with the default java template as shown below


Enter class name and save this file with .java extension.
Note: It takes java extension automatically.

when you save this file you will get two files in PWD
    1) .java extension file              Ex: Test.java
    2) .java.bak extension file          Ex: Test.java.bak

Disabling backup file creation option
To disable back up file creation follow below steps
click on tools -> Preferences menu item

Below window is opened,
Click on Files -> uncheck the checkbox "Create backup file when saving"

Click Ok button to save this change.

Increasing and decreasing fonts
Open java editor -> Click on View -> Screen Font -> Set Font menu item.


It opens a window, set your desired font -> click ok button to save changes.

Configuring javac and java tools to compile and execute java classes directly from Editplus:
Open java Editor -> Click on Tools Menu -> Configure User Tools Menu item


Below window is opened. Click on Add Tool -> Program


All above four text fields are enabled, enter text as shown below
Enter Menu Text: Compiler (can be user defined name, it meaningful and relevant)
To select javac command path, click on the button placed after its path is stored in text field.




To enter Argument value,
Click on dropdown button that is placed after its textfield -> Click on File Name.



To enter Initial directory value 
Click on dropdown button that is placed after its textfield -> Click on File Directory


Below is the final window with all configured values


Follow the same above procedure to configure java tool
     Menu Text: JVM
     Command: C:\jdk1.6.0.29\bin\java.exe
     Argument: Your should choose File Name Without Extension



Now you can find these two tools with Menu text name in Tools menu with short cuts
Compiler: Ctrl+1 & Ctrl+2 as shown below


Rule in developing java file from Editplus:
To execute java program from editplus, the Java file name must be same as class name even though class is not public. Else you will get exception "java.lang.NoClassDefFoudError"

Why this rule?
Recollect the configuration done for java tool.
We set Argument value as "FileName without extension".

For Example 
If we create class with name A and java file name with name Example.java.

EditPlus Software 
Compiles this java file as
  javac Example.java
Executes the class as
java Example

So in this case JVM throws " java.lang NoClassDefFoundError: Example" as there is no Example.class, instead we have A.class.

Note:
This rule is common for all editor softwares those support in-build compilation and execution.

How does it display compilation, execution errors and output?
For compilation and execution it also uses command prompt. So all compilation, execution errors and output is displayed on command prompt windows as shown below.


To enable Line number
Open java editor -> Click on View -> Line Number menu item.
Short-cut: Ctrl+shift+L

How Can it display keywords, predefined classes in blue and red colors:
All predefined class names are saved in file, that file path is
C:\Program Files\EditPlus 3\java.stx

In Editplus, this file path is configured in the below window
Click on Tools -> Preferences menu item ->
Click on Files -> Settings & syntax




Click on Syntax colours tab,you will be shown default configured colours.


Short-cut for copy & past existed single line:
Place cursor anywhere on the line that you want to copy & paste , and then press Ctrl+J.



About the author

Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus. Aenean fermentum, eget tincidunt.

0 comments:

Recent Posts