notepadppecl_5804876_01.pdf
TRANSCRIPT
-
Notepad++ConfigurationtoWorkwith
ECLIPSEFiles
Notepad++ is a free (as in "free speech" and also as in "free beer") source code editor. Here is explained
how to configure it to work with ECLIPSE files with these functionalities:
ECLIPSE Keyword Syntax Highlighting
ECLIPSE data folding by main sections
ECLIPSE Keyword autocompletion
ECLIPSE Keyword Documentation support
Opening of the INCLUDE files within the editor
ECLIPSE data file launch within the editor
*.PRT file open within the editor
*.PRT file highlighting for Comments, Messages, Warnings, Problems, Errors and Bugs
Obtaining Notepad++
NotePad++ v6.1.2 installer is attached, for the newest version download it from here
http://notepad-plus-plus.org/download/
Syntax Highlighting and Data Folding
After installing Notepad++
- Open it
-
- Go to View>User-Defined Dialogue
- Click on Import button and select the ecl.xml attached file
- This makes that every time a file with extension DATA, data, INC, inc, GRDECL, grdecl, SCH, sch is
highlighted as ECLIPSE keywords.
-
- Also, the file can be folded in the main sections (RUNSPEC GRID EDIT PROPS REGIONS SOLUTION
SUMMARY SCHEDULE), to do this, at the end of each section add --=====
-
Keyword Autocompletion
- Go to Settings>Preferences
- Go to Backup/Auto-Completion tab, check the box Enable auto-completion on each input,
Word completion
- Click on Close
- Restart Notepad++
-
Documentation Support
Install Language Help plugin
- Plugin manager way:
o Go to Plugins>Plugin Manager> Show Plugin Manager
o In the Available tab look for Language Help, click on install
-
- Attached file way
o Copy the file LanguageHelpU.dll into Notepad++_instalation_directory/plugins (in my
case C:\Program Files (x86)\Notepad++\plugins)
o Restart Notepad++
Plugin Configuration
- Go to Plugins>Language Help>Options
- On language Help Options windows click on Add
-
- Fill the Language Help Options window
o Name: ECLIPSE
o Extension list: DATA data INC inc GRDECL grdecl
o Extended help file path clic on button and select the attached eclipse.chm file (same
as Petrel 2010 help, from 2011 the chm file cannot be used to search for keywords)
- Click ok
- Select Show entry in context menu
- Select At the top of the menu (default: bottom)
- click ok
Usage
- Select a keyword
- Right click>Help
-
Opening of the INCLUDE files within the editor
Instalation of NppExec plugin
- Plugin manager way:
o Go to Plugins>Plugin Manager> Show Plugin Manager
o In the Available tab look for NppExec, click on install
-
- Attached file way
o Extract the content of the file NppExec_0421_dll_Unicode.zip the file into
Notepad++_instalation_directory/plugins (in my case C:\Program Files
(x86)\Notepad++\plugins)
o Restart Notepad++
Creation of the Script to Open Include Files
- Go to Plugins>NppExec>Execute or simply press F6
-
- Copy in the text box:
//Change to file path
cd "$(FULL_CURRENT_PATH)"
//open INCLUDE file
NPP_OPEN $(CURRENT_WORD)
- Click on Save
- Put a name for example INCLUDES, click on Save
-
- Close the window
- Go to Plugins>NppExec>Advanced Options
- In Menu Items Section put a name in Item name (for ex. INCLUDES), in the pop down menu
select the script INCLUDE, click on Add/Modify
-
- Click on Ok
- Restart Notepad++
- Select the name of the include file, Go to Macro>INCLUDES
-
ECLIPSE data file launch within the editor
With the NppExec plugin installed
Creation of the Script to Launch Models within the Editor
- Go to Plugins>NppExec>Execute or simply press F6
-
- Copy in the text box:
//Ask for simulator
INPUTBOX "Which Simulator use? [eclipse, e300, frontsim, ix]" : eclipse
//Change to file path
cd "$(FULL_CURRENT_PATH)"
//run model with eclrun
NPP_RUN cmd /c eclrun $(INPUT) "$(FILE_NAME)"
- Click on Save
- Put a name for example ECLRUN run, click on Save
-
- Close the window
- Go to Plugins>NppExec>Advanced Options
- In Menu Items Section put a name in Item name (for ex. ECLRUN run), in the pop down menu
select the script ECLRUN run, click on Add/Modify
-
- Click on Ok
- Restart Notepad++
- With the DATA file opened, Go to Macro>ECLRUN run
-
- Select the simulator (in this case eclipse), click ok
-
*.PRT file open within the editor
With the NppExec plugin installed
Creation of the Script to open the PRT file associated to the current DATA file within the Editor
- Go to Plugins>NppExec>Execute or simply press F6
- Copy in the text box:
//Change to file path
cd "$(FULL_CURRENT_PATH)"
//open *.PRT
NPP_OPEN $(NAME_PART).PRT
- Click on Save
-
- Put a name for example Open PRT, click on Save
- Close the window
- Go to Plugins>NppExec>Advanced Options
-
- In Menu Items Section put a name in Item name (for ex. Open PRT run), in the pop down menu
select the script Open PRT run, click on Add/Modify
- Click on Ok
- Restart Notepad++
- With the DATA file opened, Go to Macro>Open PRT
-
*.PRT file highlighting for Comments, Messages, Warnings, Problems, Errors
and Bugs
- Go to View>User-Defined Dialogue
-
- Click on Import button and select the PRT.xml attached file
- This makes that every time a file with extension PRT, prt the Comments, Messages, Warnings,
Errors, Problems, Bugs are highlighted