View Printsoft Pres Code easily in Ultraedit

给Printsoft Pres  程序员,这个语言只是在可变数据打印行业里使用。

 

Compare to current modern language IDE like visual studio, Pres IDE is limited. For example, There is no code folding, no ident clean up.

 

When we have to see a long script, especially it isn't format nicely. We feel headache to work out that a series If-else wrapping

 

Within a easy set up in ultra edit, you should view the code more clearly.  You can fold the IF-END IF, can fold subroutine. The ident can be reformat nicely by click mouse a couple of times.

 

Below is the setup procedure

The Ultraedit I am using is version 13.

step 1.  Open the wordfile.txt from ultraedit installation folder. On my pc, it is at

C:\program files\Ultraedit\wordfile.txt

 

Step 2 . Go to last line and append following text, /L10 means the tenth language.

/L10"Pres" Line Comment = ; Nocase  File Extensions = PDS PDI
/Function String = "%*^{subroutine^}*("
/Indent Strings = "{" "CASE"
/Unindent Strings = "}"
/Open Comment Fold Strings = ";Region"
/Close Comment Fold Strings = ";End Region"
/Open Fold Strings = "{" ";Region" "START"
/Close Fold Strings = "}"  ";End Region" "Return"
/C1"Data Description"
ALPHA
ASSIGN
COMMON
DATE
FILLER
INCLUDE
INTERNAL
NUMERIC
RECORD
TIME
/C2"Data Manipulation"
APPEND
BARCHART
BARCODE
CHART
CLOSEUP
COLOUR
CONVERT
DRAWARC
DRAWBOX
DRAWCIRCLE
DRAWHLINE
DRAWLINE
DRAWTEXT
DRAWVLINE
GETPDC
HYPHENATION
INC
INITARRAY
JUSTIFY
LASTWORD
LENGTH
LOCATE
PAC
PIECHART
REPLACE
ROTATE
TITLECASE
UPPER
WORDS
WORDWRAP
/C3"Logical Arithmetic"
AND
EQ
EE
GE
GT
LE
LT
NE
OR
/C4"Flow Control"
BREAK
CASE
DEFAULT
END
EOFENTRY
EXIT
GOSUB
GOTO
IF ELSE
IGNORE
LOOPCHECK
MACROBEGIN
MACROCALL
MACRODELETE
MACROEND
PAUSE
PROMPT
REPEAT
RETURN
REWIND
START
STOP
SUBROUTINE
SWITCH
USERHOOK
WHILE
/C5"InputOutput"
ELSE
ALINE
ARCHIVE
BIN
BINDING
BINOFFSET
BOOKLET
CLOSESPOOL
CLOSETAPE
COPYMODE
DELETE
DISPLAY
DRAIN
DUPLEX
FILL
FONT
KEYBOARD
LITREC
LOADFONT
LOADGRAPHIC
MICRLINE
MODEL
MOVE
ORIENTTEXT
PAGEEND
PREVIEW
PRINT
RESTOREPAGE
ROTATEPAGE
SETLINEINC
SETMARGIN
SETRES
SETTABLE
SETXY
SPACEFILE
SPOOL
STAPLE
STOREPAGE
TRAY
TRFREAD
TRFWRITE
WRITE
INITIALISE
/C6"System Fields"
$Bin
$BottomMargin
$Break
$copies
$currrecord
$date
$debug
$duplex
$eof
$FIftiMain
$filedate
$fileid
$filemodifdate
$filemodiftime
$first
$font
$inches
$margin
$nulldriver
$operatingsystem
$orientation
$ostype
$output
$overflow
$overflowtext
$pageheight
$pagesize
$pagewidth
$path
$pdl
$pitch
$position
$printerinfo
$printstat
$recordposition
$recordsize
$recsread
$remakes
$repeats
$reprints
$resolution
$result
$searches
$systemid
$time
$timesused
$totalrecords
$tray
$version
$volowner
$volumeid
$wraplength
$xposition
$yposition

 

Step 3. open your pds code, click view menu-->select View As-->select Pres

The code will be highlighted in corresponding syntax highlighting color. You can change the color in Configuration--> Editor Display-->Syntax Highlighting.

   

转载于:https://www.cnblogs.com/yangbin990/archive/2008/07/27/1252335.html

你可能感兴趣的:(View Printsoft Pres Code easily in Ultraedit)