Net.Data & the UltraEdit Program Editor
IGNITe Newsletter
- Subscribe/Unsubscribe
- Archive
User Discussion
- On-Line Forum
- Mailing List
Resources
- OpenSource Project
- iSeries Net.Data
- iSeries WebSphere
- iSeries LINUX
- iSeries Java
- Education
- FAQ's
- Bookstore
Real Websites
- Site Showcase
- Solution Providers
Member Count
8 2 1 2
Members
- My Options
- My Forum
 

Net.Data & the UltraEdit Program Editor

by Bob Cancilla, IGNITe/400

UltraEdit32 from www.ultraedit.com is a lowcost very high function program editor. One of the features of this editor is the ability to extend its ability to recognize language contexts and structures. The attached instructions and the wordfile.txt necessary to implement the Net.Data extensions were researched by James Zhang, a web developer with which I have the pleasure of working. These words are mine, but James did the research and put this togehter. There is a wordfile.txt at the bottom of the article that you may freely download (at your own risk of course) and use freely.


Figure 1: A Net.Data Macro opened in the customized UltraEdit Program Editor

If we examine the macro displayed above, you will notice that tags are displayed in green, parameters are displayed in gray, and Net.Data macro language key words are displayed in blue. In the column tot he right, Net.Data functions and %HTML sections are listed. You may double click on a function name or HTML Section name and the editor will position to the referenced item.

The editor does not do syntax checking, or display help for a Net.Data function, but it certainly helps move arround a complex macro and identify Net.Data constructs.

Download the WORDFILE.TXT

Here in James words is his explanation:

Customizing UltraEdit32 for Net.Data

UltraEdit32 can be set up for different programming languages by highlighting the language key words. It does not check syntax. UltraEdit32 version 8.20a+ that we use has following languages preset:

" C/C++
" Visual Basic
" HTML
" Java
" Perl
" XML
" C#
" ASM
" Pascal

There is a configuration file named "wordfile.txt" (located in x:\Program Files\UltraEdit\) that contains the settings. It allows user to put their own customized settings such as a new language. Each language in the file starts with the tag /L, if you take look this file, you will find the language tag like:

/L1 "C/C++" ..

/L2"Visual Basic" ..
.
.

/L9"Pascal"

Each language section has several tags to specify the language key words, function etc.

I created a new language called "Netdata" and put it at the end of the file. The following code illustrates the settings I used:

/L10"NetData" Line Comment = // Block Comment On = %{ Block Comment Off = %} Block Comment On Alt = /* Block Comment Off Alt = */ String Chars = "' File Extensions = MAC HTI D2W
/Function String = "^{%[%a-Az-Z]*)*{^}^{function *(*)^}"
/C1"Keywords"
**@DTW
break

case continue
do
else
false for
if
new null
return
switch
true this
while
ELIF ELSE ENDIF
MESSAGE
IF INCLUDE
WHILE
/C4"Operators"
+
-
=
/
%
&
>
<
^
!
|


Please notice the /L10"NetData" line is wrapped for presentation here, in the configuration file "wordfile.txt", this line must be on one line. The File Extensions = MAC HTI D2W is the setting for UltraEdit to reorganize the file type, user can specify any extensions separated by blank character. The /Function String set to show functions in function list. The /C1"Keyword" set up key words, the key words list in this section must be in alphabetical order. I try to set up key words and operators for Net.Data and JavaScript, user can put their favorite key word or operator to the list.


The benefit from this set up for me is:
1. It highlights the key word and the comment with different colors.
2. View function list, it lists the summary of all the Net.data and JavaScript functions in function list window, include the %HTML section. This is the most useful feature I used all the time.


 

 

 

 

 

 

Find info on ...
 
Sponsors
- About Sponsorship
NET.DATA DTW_SQL Error: Function getCurrentVote: Warning occurred during FETCH operation. (SQLSTATE 02000, SQLCODE 100)
Help me!!
- About IGNITe/400
- Password Reset
- Website Problem
Morpheus
Experiencing problems then email: Bleddyn or use ICQ(2923448), view the IGNITe/400 Webcam!
© Copyright 2001 IGNITe/400
This page last updated Friday, 27-Jun-2003 17:47:07 British Summer Time
Join IGNITe/400 Home Page