Home
User Manual - Personal Editor 32
Contents
1. Command Abbr Description Menu line erase end line ee delete from cursor to end of line TEXT erase to end line escape es insert typed key as ascii char execute ex execute command line TOOLS execute expand ep run current word as synonym file lt filename gt save file and close window FILE file lt tabs notabs gt fill mark fm change marked chars to typed MARK Di character find blank line fb cursor to next empty line SEARCH find blank line first nonblank fn cursor to first nonblank SEARCH find nonblank get word gw mark current word help lt set gt or lt key gt or h display key definition or commands HELP help lt synonym gt syntax history dialog box of command history COMMAND command history html lt filename gt convert to new html file import lt filename gt i insert data from specified file into current indent in cursor to left margin insert line 11 insert line after current line TEXT insert line insert mode im set insert on insert toggle it set insert lt on off gt invertcase ic marked characters invert case join jo join the next line to current one TEXT join line justify all ja align all lines to right margin justify line ju align line to right margin TEXT justify line justify paragraph Up align paragraph to right margin TEXT justify paragraph
2. Command Abbr Description Menu set syntaxcoloringext lt nr gt set syntax coloring file extensions WINDOW set lt extensions gt syntaxcoloringe set syntaxcoloringpro lt nr gt set syntax coloring profile file lt file gt set syntaxcoloringset lt nr gt set syntax coloring set commands lt commands gt set tabbed lt on off gt set tabbed windows for multiple files lt columns gt set tabexpand lt col gt set expand on load compress on save OPTIONS set tabexpand set tabinsert lt on off gt set tab indent when insert mode active set tabs lt col gt lt step gt or set tab stops OPTIONS set tabs lt col gt lt col gt set time lt string gt set format of time string OPTIONS set time set uppercase lt on off gt set uppercase for chars a to z WINDOW set uppercase set vbsload lt pathname gt set script file after pe32 vbs load set vbsrefresh lt on off gt set screen refresh for VBS set vbstimeout set timeout for VBS commands or lt milliseconds gt procedures set wheelscrollline lt lines gt set lines to scroll with mouse wheel set wordwrap lt on off gt set word wrap on or off WINDOW set wordwrap shift left sl shift mark one column left MARK shift left shift right sr shift mark one column right MARK shift right sort column column sort lines using optional parameters TOOLS sort lines dinrck split sp insert crlf to spli
3. SE Extended form Command description ag align Align the current line to the cursor position am align mark Align all marked lines to the cursor position at align tab Align the current line to the next tab position ak align backtab Align the current line to the previous tab position ao align block Align the mark to the beginning of the block al append line Append a line after current line ab append to clipboard Append the marked text to the clipboard au autocomplete Complete the word with the most similar bt backtab Move cursor to the previous tab position bw backtab word Move cursor to the previous word 40 Short Extended form Command description form bp beep Execute a beep bl begin line Move cursor to the beginning of the line bm begin mark Move cursor to the beginning of the mark wb begin word Move cursor to the beginning of the word bs bookmark set Set a bookmark at the cursor position bg bookmark goto Move cursor to the typed bookmark br bookmark remove Remove one bookmark bo bottom Move cursor to the bottom of the file ba bottom all Move cursor to the bottom on all files be bottom edge Move cursor to the bottom of the window bk begin keyword Move cursor to the begin of the keyword bu begin unknown Move cursor to the begin of the unknown word bi begin string Move cursor to the begin of the string bn begin n
4. lt gt Matches all hex numbers Is the equivalent of 0 9a fA F Matches all integers Is the equivalent of 0 9 Matches all valid C identifiers Is the equivalent of a zA Z_ a zA Z_0 9 Matches all words Is the equivalent of a zA Z To search for a colon you must prefix it with a backslash ie Valid searching expressions in the replace string are a The entire search string will be substituted at that point For example if the search string is abc and the replace string is 12834 then abc will be replaced with 12abc34 Takes the next character literally and not as a searching expression If the next character after the backslash is a digit see the below expression If the next character after the backslash one of the following the relative character is replaced bbackspace nnew line rcarriage return ttabulation fform feed Eescape e g c abc An x replace all abc strings with a new line character n Refers to the tagged pattern lt n gt in the search string N is a number from 1 to 9 e g c dog cat 2 1 x replace every occurrence of dog cat with cat dog 27 locate searchstring mnewsaxofichtbr lg Searches from the current cursor position to the end of the file for searchstring The character used to delimit the strings is the first one non space following the locate or the I command The locate or the I comm
5. vbsexec lt Visual Basic Script commands gt Executes one or more Visual Basic Script commands If you want to execute more than one command separate them with colons Without any vbs commands the function displays the list of already loaded vbs functions and lets you to choose which function to execute If the function needs one or more parameters they are requested See the paragraph VISUAL BASIC SCRIPT USE for more information vbsrun lt filename gt Loads and parses a file containing Visual Basic Script commands and procedures This makes any included functions available for execution by the vbsexec command Without the filename parameter the function displays the list of vbs files present in the current directory and lets you to choose which file to execute 31 See the paragraph VISUAL BASIC SCRIPT USE for more information calc lt expression gt row col Calculates the result of the expression and displays it in the status line in decimal and hexadecimal format if the equal sign at the end of the expression is not present If the equal sign is present at the end of the expression the result is written after it If after the equal sign the row col syntax is used the result is written in the current file at the specified row and column if one or both of the row and col parameters are omitted the current cursor position is used If the expression parameter is not present it looks at the marked text in the current
6. For readability the String_Variable_Name can be included between double quotes Default_String_Value is optional if the String_Variable_Name is present For readability the Default_String_Value can be included between double quotes Used to evaluate an expression and set the string variable value String_Variable_Name and Default_String_Value are mandatory Both can be included between double quotes The optional len parameter contains the format of the expression value to write into the macro The len integer part is the minimum number of digits to write while the decimal part is the minimum number of digits to write to the right of the decimal point Used to test two string variables or one variable and a string constant String_Variable_Name is mandatory Default_String_Value is mandatory and may be a previously defined string The operators may be one of the following string is identical to lt gt string is different from When both strings can be converted to numbers then additional operators are allowed lt number is less than gt number is greater than lt number is less than or equal to gt number greater than or equal to The if else endif commands cannot be nested endif Used to close the if branches They have no parameters 37 pe command Used to execute one or more PE32 commands If any pe commands are present no other substitutions or string variables may be prese
7. ci align line to center in margins TEXT center in margins center line cl scroll line to window center TEXT center line change old new c change text according to parameters SEARCH change mnewpaxoichtb chars count chars in mark or file clear marks ck clear the current mark and the mark stack clear message ce delete status line message 59 Command Abbr Description Menu colnum lt expression gt cn insert column number in file column lt number gt cursor to column specified SEARCH goto column command toggle cg cursor command line to text toggle confirm change co ignored context help ch open help file on current word HELP context help copy from clipboard cp copy from clipboard at cursor position MARK from clipboard copy from command cf copy from command line at cursor TOOLS copy from command copy mark cm copy mark to cursor position MARK copy copy to clipboard cb copy mark to clipboard MARK to clipboard copy to command ct copy current line to command line TOOLS copy to command create table cr create table using delimiters and marked lines cursor command cc cursor to command line cursor data ca cursor to text window date dt insert date def lt key gt d define key as sequence of commands command com
8. for more information set wheelscrollline lt lines gt Sets the number of lines to scroll using the mouse wheel If the shift key is pressed the mouse wheel scrolls the file one page at time The default value is 1 set codepage lt number gt Changes the active codepage for the current console The codepage number must be valid for the used operating system Window 9x and ME don t support console codepages and a true type font must be active The default value is the active console codepage 19 set borders lt characters gt Changes the characters used to draw menu and dialog borders The character used in the files top and bottom lines will change at the load of the next file The default value is 0A3 AAAAUU set cursor lt size gt lt size gt Changes the cursor replace and insert sizes The sizes can range between 1 a thin line and 100 a complete character The default values are 20 and 90 set showbookmarks lt on off gt Shows or no the bookmarks position in the current file The default value is on set locateswitch mnewsaxofichtbr lg Sets the default switches used in the locate command For every switch present in this command the relative locate switch is enabled by default and the presence of the switch in the locate command disable it The default value is no switch active set changeswitch mnewpaxoichtb Sets the default switches used in the change command For every switch present
9. key lt key gt lt nr gt k execute assigned commands lt nr gt COMMAND key times assignment learn lr add a keyword to kwd file left lt nr gt f cursor left one or nr chars left edge le cursor to left screen edge left margin lg cursor to left margin line lt row gt lt column gt cursor to line and column specified SEARCH goto line linenum lt expression gt In insert linenumber in file at cursor lines count lines in mark or file link to lt open the web site at cursor position load lt filename gt macro load COMMAND macro load locate string II show occurrences of search string SEARCH locate mnewsaxofichtbr lg lowercase Ic change marked character to lowercase MARK lower case macro lt profile pathname gt m activate specified profile COMMAND load profile macro define kd macro recording start stop COMMAND macro record 61 Command Abbr Description Menu macro pause ku macro recording pause COMMAND macro pause macro play kp macro play last recorded COMMAND macro play mail lt address gt object sends email to specified address TOOLS send mail attachment mail to mo send an e mail to the address at cursor position mark backtab mk align marked line to previous tab mark block mb mark corner of rectangular
10. words Convert the current opened file in a new file with the rtf extension and the rich text format The original data format and the foreground colors are converted If the filename is not present the rtf extension is appended to the current filename If the filename already exists it is opened and the content is erased before the conversion the disk data are overwritten at the first save operation If is present a mark in the current file this command shows the number of lines present in the mark else it shows the number of lines in the current file If is present a mark in the current file this command shows the number of characters present in the mark else it shows the number of characters in the current file carriage return and line feed are ignored If is present a mark in the current file this command shows the number of words present in the mark else it shows the number of words in the current file See the set delimiters command to define or change the word delimiters import lt filename gt Loads all data present in the specified file and imports it into the current file being edited With this command you can insert the text from lt filename gt into a macro or into a synonym This allows you to customize your macros for instance with different behaviors for different users without having to have completely separate profiles This also allows you to create file skeletons for example program headers that will hav
11. List of PE32 available keys name you can use in the def command Key Name Normal Shift Ctrl Alt Shift Ctrl Ctrl Alt s c a u x up yes yes yes no yes yes down yes yes yes no yes yes left yes yes yes no yes yes right yes yes yes no yes yes pgup yes yes yes no yes yes pgdn yes yes yes no yes yes home yes yes yes no yes yes end yes yes yes no yes yes ins yes yes yes no yes yes insert yes yes yes no yes yes del yes yes yes yes yes yes enter yes no yes no yes yes backspace yes no yes no yes yes space yes no yes no yes yes tab yes yes yes no yes yes a yes yes yes yes yes yes p yes yes yes yes yes yes c yes yes yes yes yes yes q yes yes yes yes yes yes e yes yes yes yes yes yes de Aj yes yes yes yes yes yes g yes yes yes yes yes yes rk yes yes yes yes yes yes St yes yes yes yes yes yes j yes yes yes yes yes yes K yes yes yes yes yes yes i yes yes yes yes yes yes m yes yes yes yes yes yes n yes yes yes yes yes yes o yes yes yes yes yes yes p yes yes yes yes yes yes q yes yes yes yes yes yes Ga yes yes yes yes yes yes s yes yes yes yes yes yes 56 Key Name Normal Shift Ctrl Alt Shift Ctrl Ctrl Alt s c a u x F
12. Personal Editor 32 properties available from VBScript eeeeeeseecseeereereesreeree 53 Personal Editer 32 Keys Name Table oi 56 Personal Editor 32 Commands Reference A ieee ad en ee aad 59 Personal Editor 32 MAIN FEATURES Personal Editor 32 is a powerful ASCII file editor with a console interface It is the only real 32 bit upgrade of the Dos IBM Personal Editor and all its revisions called PE2 and PE3 Personal Editor 32 also called PE32 maintains the same user interface the same profile file syntax and it can executes all the original editor commands It however uses a complete 32 bit core thus removing all DOS limitations it adds many new powerful features like the multi language support the syntax coloring and a lot of setting commands Personal Editor 32 is the best editor for editing large amount of data for professional programmers and to simplify complex editing tasks Personal Editor 32 new release features are NEW Improved editor control from VBScript and PowerShell NEW Windows 7 compatibility NEW Tabbed windows to change the current file using the mouse NEW Nested loops to repeat the execution of one or more commands NEW Context popup menu on the mouse right button click NEW IME input characters management Double Byte Character Set NEW Autocomplete for commands and filenames in the command line NEW Commands to count file lines words and characters NEW The calc command can use and set numbe
13. Visual Basic Script procedures Full 32 bit program Windows NT 2000 XP Vista and Seven compatible Fat Fat32 NTFS long file name and network path compatible Timed autosave and backup copies on configurable files Console interface with unlimited lines and columns Bookmarks enhanced saved restored and a dialog to manage them Sort all or a block of lines using different comparisons Edit and save ascii files compressed in a zip archive User defined synonyms to execute a sequence of commands Open multiple files matching a wildcard specification Save load and run macro keystrokes Creation a file containing all occurrences of a string Commands to move the cursor simultaneously in all opened files Command line and status line presence is configurable Calc command to evaluate expressions Encryption Decryption password for each file Window update is now two times faster Search and replace simultaneously on all opened files 26 bookmarks management set goto and remove commands 255 levels undo and redo facility Word wrap management overstrike and insert typing modes Restores the last cursor position on previously opened files Block or word change case upper lower invert and capitalize Configurable format for date and time insertion instructions Configurable context help on the current word Instructions to divide the screen in multiple views Instructions to open files in view mode read only Instructions t
14. block MARK bock mark char mc mark end of stream MARK char mark line ml mark line MARK line mark tab mt align marked line to next tab match brace ma cursor to search for next brace SEARCH match brace menu open menu to execute commands move mark mm mark move to cursor position MARK move mru dialog box of recently used files FILE recently used name lt file gt n rename current file FILE name next history nh show next command line COMMAND next command next keyword nk cursor to next keyword next number nn cursor to next number next remark nr cursor to next remark next separator np cursor to next separator next string ns cursor to next string next unknown no cursor to next unknown next view nv cursor to next view WINDOW next view next window nw cursor to next window WINDOW next window null nu no operation open o dialog box of open files overlay block ob mark overlay at cursor position MARK overlay page down pd cursor to next page down page down all pa cursor to next page down all files page up pu cursor to next page up page up all ua cursor to next page up all files paragraph margin pg cursor to paragraph margin pathname pe insert pathname at cursor pe32 s lt file gt execute another copy of PE32 commands pop mark po mark restored from stack TOOLS pop mark prev history ph show previous command
15. feature enabled and which colors are to be used to draw the different keywords and operators The procedure that analyzes the language uses the commands present in the PE32 PRO file and in the PE32 KWD files to assign the different colors to the keywords The only settings needed in the profile files are the file extensions for each language and the colors for each language s keywords operators These settings may be used to specify up to 20 different syntaxes The lists of all keywords to colorize are in the PE32 KWD files All keywords in the file PE32 KWD after the PE32_END_KEYWORDS word are displayed with the color specified for the system keywords the last 2 parameters in the set syntaxcoloring command Some other settings may be present in the keyword file to match the syntax rules After PE32_SEPARATORS type all separators used by the syntax After PE32_REMARK_BEGIN type one or more characters to define the keyword that starts a block remark After PE32_REMARK_END type one or more characters to define the keyword that ends a block remark After PE32_REMARK_LINE type one or more characters to define the keyword that ends the line and starts a trailing comment After PE32_REMARK_COLUMN type the column number where to search for the characters defined in PE32_REMARK_LINE command if you don t specify a column number these characters are searched in all the line After PE32_REMARK_AFTER type th
16. file as an expression If the only parameter is one of these or it executes this operation on all numbers present in the marked text All numbers may be expressed in decimal or hexadecimal format if preceded by Ox The operators available are 0 arithmetical operator and parenthesis SIN COS TG CTG sine cosine tangent and cotangent ASIN ACOS ATG arc sine arc cosine and arc tangent EXP SQRT LOG exponential square root and logarithm INT integer value absolute value a power of lt gt logical operator less greater and inverse row col the value present in the current file at row or row col and column is used in the evaluation if the or row col row or the column parameters are omitted the or row col current cursor position is used The parenthesis are mandatory if the current row or column increment ordecrement row or row is present Any word not included in the previous operators list is considered as a variable If the variable has no value a dialog is shown to enter it otherwise it s value is used in the expression sort column column dinrck Sort all file lines at the columns specified in the parameters Without parameters it sorts ascending all file lines starting from the first column If you specify one or two columns the sort is done looking at the characters included between the two columns or from the first column to the end of the line if the second col
17. gt set lines back to search in autocomplete set linesforward lt value gt set lines forward to search in autocomplete set linetrim lt off gt lt lead gt lt trail gt lt comp I gt set removes blanks on save OPTIONS ser linetrim set locateswitch mnewsaxofichtbr lg set locate command default switches set margins lt left gt lt right gt lt par gt lt col gt set margins WINDOW set margins set markon lt shift ctrl alt off gt set key to mark with arrows set oncommand lt on off set condition of command line upon file open OPTIONS set oncommand set onmenu lt on off gt set opening of command menu upon loading set openwith lt extensions gt set extensions to use PE32 by default set pecompatibility lt on off gt set the pe compatibility mode set popupmenuon lt control keys gt set mouse key to open popup menu set printer lt printername gt set default printer port PRINT set printer set restorecursor lt on off gt set cursor to last position on loading OPTIONS set restorecursor set showbookmarks lt on off gt set visibility of bookmarks set statusline lt off on gt set visibility of status line OPTIONS set statusline set syntaxcoloring lt nr gt lt colors gt set syntax coloring colors WINDOW set syntaxcoloring 64
18. in this command the relative change switch is enabled by default and the presence of the switch in the change command disable it The default value is no switch active set linesback lt value gt Set the number of lines to search back for unknown words in the autocomplete command A value equal or lower to O disable the search The default value is 10000 lines set linesforward lt value gt Set the number of lines to search forward for unknown words in the autocomplete command A value equal or lower to O disable the search The default value is 10000 lines 20 set tabbed lt on off gt lt columns gt Enables or disable the tabbed windows if more than one file is opened and sets the tab width where the filename is displayed If the tabbed windows are enabled you can change the current file using the mouse with a left click on the filename The default value is off and 14 set autosave lt value gt Set the number of seconds after the editor start or after the last autosave to automatically save all modified files A value equal or lower to O disable the autosave The default value is O no autosave set charset lt oem ansi gt Set the active codepage used to display all the characters If this command is not executed the set codepage command is used to set the active codepage If this command is executed with the oem parameter the system oem codepage is activated If this command is executed with the ansi parameter the syst
19. line COMMAND prev command prev keyword ps cursor to previous keyword prev number pn cursor to previous number prev remark pr cursor to previous remark prev separator pp cursor to previous separator prev string pt cursor to previous string prev unknown uw cursor to previous unknown print print whole file on default printer PRINT file print mark pm print marked characters PRINT mark 62 Command Abbr Description Menu printdoc m print whole file or marked lines PRINT print doc push mark ps mark to save in stack TOOLS push mark quit alll y q quit and close window FILE quit redo re redo the last 255 undo commands COMMAND redo redraw rw refresh the current window reflow rf align marked lines to l r margins reformat all ra align all lines to lr margins TEXT reformat all reformat paragraph rp align paragraph to Ur margins TEXT reformat paragraph rename lt oldfile gt rename the file lt oldfile gt as lt newfile gt lt newfile gt repeat change rh repeat last change command repeat command rc repeat last command repeat locate rs repeat last locate command replace mode rm set insert off right lt nr gt rt cursor right one or nr chars right edge rd cursor to right edge right margin rg cursor to right margin rtf lt filename gt convert to new rtf file rubout ro delete previous c
20. of the cursor at the mouse position before to open the context menu in file space only The default value is rightbutton on set helpfile lt pathname gt Sets the pathname of the help file used with the context help command on the current word The program can open Windows Help files hlp or Html Help files chm set confirm lt on off gt Enables or disables the confirm message during a save or a file command on an existing file The default value is off set insert lt on off gt Enables or disables the insert mode after the load of a file The default value is off set date lt string gt Sets the format string used to display the current date See the date command The format string is a sequence of characters and one or more of the following keywords including the square brackets d the 1 digit days number dd the 2 digits days number m the 1 digit months number mm the 2 digits months number yy the 2 digits years number yyyy the 4 digits years number month the month name mmm the first 3 characters of the month name d the number of the day of the week day the day of the week ddd the first 3 characters of the day of the week dn the number of the day of the year The default string is dd mm yy 15 set time lt string gt Sets the format string used to display the current time See the time command The format string is a sequence of characte
21. only mode If wild card characters are present in the filename all matching files are opened in read only mode If the filename contains a reference to an environment variable enclosed by characters the variable content is expanded in the filename file lt filename gt tabs notabs Saves the current file with the optional name specified and closes the file window The tabs and notabs switches can be used after the filename only and they are used to compress blanks to tabs or not If no switch is present the compression will follow the set blankcompress command If the filename parameter is all opened files are saved with their current names and the program is closed If the filename contains a reference to an environment variable enclosed by characters the variable content is expanded in the filename save lt filename gt tabs notabs Saves the current file with the optional name specified without closing the file window The tabs and notabs switches can be used after the filename only and they are used to compress blanks to tabs or not If no switch is present the compression will follow the set blankcompress command If the filename parameter is all opened files are saved with their current names 24 If the filename contains a reference to an environment variable enclosed by characters the variable content is expanded in the filename append lt filename gt Append the marked text to the specifi
22. prev remark Move cursor to the previous remark pp prev separator Move cursor to the previous separator rh repeat change Repeat the last change command executed rc repeat command Repeat the last command executed rs repeat locate Repeat the last locate command executed re redo Redo the last 255 undo commands 45 Short Extended form Command description form rw redraw Refresh the current file window rf reflow Align marked lines to left right margins ra reformat all Align all lines to left right margins rp reformat paragraph Align paragraph to left right margins rm replace mode Change cursor to replace mode rt right Move cursor right one char rd right edge Move cursor to the screen right edge rg right margin Move cursor to the right margin ro rubout Delete the previous character rj rubout join Delete the previous char and join at begin sd scrolldown Scroll the screen one line down rl scrollleft Scroll the screen one column left rr scrollright Scroll the screen one column right su scrollup Scroll the screen one line up sl shift left Shift mark left one char sr shift right Shift mark right one char sp split Split the line at the current position ss split screen Split the screen in 2 different views tb tab Move cursor to the next tab position tw tab word Move cursor to the next word tm time Insert the current time see set time
23. remarks and systemkeywords discovered during the syntax coloring process See previous colors list The index none or a digit from 1 to 19 specifies which keywords fileto use pe32 kwd or the file pe32 kwd lt index gt set syntaxcoloringext lt index gt lt file extensions or names including wildcard gt Sets the file extensions starting with a dot e g cpp or the filename including wildcard of the files to apply the specified syntax coloring 13 The index none or a digit from 1 to 19 specifies which keywords fileto use pe32 kwd or the file pe32 kwd lt index gt set syntaxcoloringset lt index gt lt set command gt Executes different set commands for every file extension defined in the previous command The set commands list must be separated with a comma and it can contain every set command unless itself The index none or a digit from 1 to 19 specifies which keywords file to use pe32 kwd or the file pe32 kwd lt index gt set syntaxcoloringpro lt index gt lt profile file gt Load a different profile file for every file extension defined in the syntaxcoloringext command The profile file can contain the only macros definition used by this extension while all other macros stay the same To change the set commands please use the previous command The index none or a digit from 1 to 19 specifies which keywords file to use pe32 kwd or the file pe32 kwd lt index gt set historyon lt scrolllockon scro
24. the command save lt name gt it doesn t change the active file The default value is off set abbrev lt on off gt Use or no the commands abbreviated form in the help and keydefs commands The default value is off dir lt pathname gt lt filters gt erase Creates a dialog box with the list of all files present in the pathname specified and with the filtered name and extension In the dialog box the you choose a file using arrows keys edit it with the Enter key abandon the dialog with the Esc key select a file by typing the first letter edit multiple files using the numpad plus key or edit all files using the numpad multiply key By pressing the insert key the dialog s information is copied into a file called dir and by pressing CTRL C on a file the filename is copied into the clipboard By pressing the Enter key on a directory name the directory files are listed while using the numpad minus key on a directory name it will be the current directory at the dialog exit If the pathname is related to a ftp file e g ftp ftp abcdef com a connection to the ftp site is opened and all the files present in the directory that matches the pathname are shown With the mouse click you can select files and directories and with the double click you can open a file or a dir lt file gt Removes the file specified rename lt oldfile gt lt newfile gt 22 Renames the not opened file lt oldfile gt as l
25. the end of the file start the search from cursor position backwards to the beginning of the file m only replace marked strings 25 O DSO gt 5 zw Hr Tor only replace not marked strings search for a case sensitive string search for a whole word only see the set delimiters command above select the matched text with a mark and prompt for a confirmation You can press Y to confirm the change and continue press N to ignore the change but continue press A to change all subsequent matches without further confirmation or press ESC to abort the command at the current position repeat the replace command on all opened files start the replace command from the top of the file or from the bottom if the parameter is present then ignoring the cursor position suppress aborting the current macro if the string is not found come back in the command line if the string is found show the found string in the center of the screen show the found string at the top of the screen show the found string at the bottom of the screen show the number of changed strings enable the use of searching expressions in the search string oldstring and in the replace string newstring Valid searching expressions in the search string are c1 c2 Matches any single character e g l a b x search for an a followed by any single character and a b Matches zero or more occurrences of the previous character e g l a b x search
26. the file name lt string var gt pe32 Line Return the current line pe32 Line lt string var gt Set the current line lt string var gt pe32 Word Return the current word pe32 Word lt string var gt Set the current word pe32 Insert lt string var gt Insert the text at the current position 53 lt numeric var gt pe32 Key Return the typed key lt numeric var gt pe32 Shift Return the keyboard shift state using a bit for each of the following right alt pressed 0x0001 hexadecimal left alt pressed 0x0002 hexadecimal right ctrl pressed 0x0004 hexadecimal left ctrl pressed 0x0008 hexadecimal shift pressed 0x0010 hexadecimal num lock on 0x0020 hexadecimal scroll lock on 0x0040 hexadecimal caps lock on 0x0080 hexadecimal enhanced key 0x0100 hexadecimal lt numeric var gt pe32 Found Return the last search or replace result pe32 Found lt numeric var gt Set the search result If set to O the current macro is aborted lt numeric var gt pe32 Modified Return the current file modification state pe32 Modified lt numeric var gt Set the current file modification state lt numeric var gt pe32 ReadOnly Return the current file read only state pe32 ReadOnly lt numeric var gt Set the current file read only state lt numeric var gt pe32 Encrypted Return the current file encryption state pe32 Encrypted lt numeric var gt Set the current file encryption state
27. to specified file append line al insert line after current line append to clipboard ab append marked text to clipboard autocomplete au autocomplete with most similar word backtab bt cursor to previous tab backtab word bw cursor to previous word SEARCH prev word beep bp beep begin keyword bk cursor to begin of keyword begin line bl cursor to begin line SEARCH begin line begin mark bm cursor to begin mark MARK begin mark begin number bn cursor to begin of number begin remark bb cursor to begin of remark begin separator bq cursor to begin of separator begin string bi cursor to begin of string begin unknown bu cursor to begin of unknown word begin word wb cursor to begin word SEARCH begin word block from clipboard bc copy from clipboard as block bookmark goto bg cursor to bookmark SEARCH bookmark goto bookmark remove br remove one bookmark SEARCH bookmark remove bookmark set bs set bookmark at cursor SEARCH bookmark set bookmarks dialog box of bookmarks SEARCH bookmarks list bottom bo cursor to end of file WINDOW end file bottom all ba cursor to end of all files WINDOW end all files bottom edge be cursor to window bottom WINDOW bottom edge calc calculate result of expression TOOLS calculate lt expression gt row col capitalize kc change mark to capitals cd lt path gt change directory FILE cd center in margins
28. yes yes yes period yes yes yes yes yes yes pad5 yes yes yes no yes yes pad yes no yes no yes yes esc yes yes no no no no prtsc no no no no no no exclamationp yes no no no no no doublequote yes no no no no no numbers yes no no no no no dollars yes no no no no no percents yes no no no no no ampersand yes no no no no no Ipar yes no no no no no rpar yes no no no no no asterisk yes no no no no no plus yes no no no no no colon yes no no no no no lesst yes no no no no no greatert yes no no no no no questionm yes no no no no no ats yes no no no no no carets yes no no no no no underscore yes no no no no no Ibrace yes no no no no no pipes yes no no no no no rbrace yes no no no no no tilde yes no no no no no semi and semicolon are alias ins and insert are alias 58 Personal Editor 32 Commands Reference Command Abbr Description Menu lt 3 digits number gt nnn convert the number in ascii character about ver displays the PE32 ABOUT box HELP about align ag align line to cursor align backtab ak align line to previous tab align block ao align mark to beginning of block align mark am align marked lines to cursor align tab at align line to next tab append lt filename gt append marked text
29. 1 Increment row Exit if EOF if newrow gt pe32 lines then If eof exit exitloop 1 end if Exit at matching depth 51 if brace lt 0 and Matches count gt 0 then If end function exit exitloop 1 end if pe32 row newrow Set new row loop until exitloop 1 Repeat loop end function As can seen within the VBScript program you can read and write all Personal Editor 32 properties and call all of its functions to retrieve lines characters marked lines filenames etc The following Personal Editor 32 functions are available from VBScript pe32 Command lt string var gt Execute a Personal Editor 32 command line instruction or a profile file command This may not include macro commands such as key lt key gt lt nr gt demo Comment or change nor vbsrun or vbsexec commands However the non macro commands change and Comment work lt string var gt pe32 GetLine lt numeric var gt Return in a string variable the line with the number in the numeric variable pe32 SetLine lt string var gt lt numeric var gt Set the line with the number in the numeric variable with the value in the string variable lt string var gt pe32 GetMarkedLine lt numeric var gt Return in a string variable the marked line with the number in the numeric variable pe32 SetMarkedLine lt string var gt lt numeric var gt Set the marked line with the number in the numeric variable with the value in the string variable lt st
30. LPTx port or a full net printer name e g server laser printer or use the word default to select the system default printer The default value is default set tabs lt first col gt lt col step gt or set tabs lt col gt lt col gt When two parameters are used PE32 sets the first tab stop column and the column steps to get to the subsequent tab stop columns When more than two parameters are used PE32 sets a tab stop at each specified tab position The default value is 9 8 set tabexpand lt col gt Sets the number of columns used to expand tabs during the loading of a file or to compress blanks during the saving of a file This value is independent of the previous set tabs values and it is used during the load or the save of a document only Tabs when encountered in the input file are replaced with one or more blanks until the last blank is on a column that is a multiple of lt col gt The inverted process is followed during the save in the output file 12 The default value is 8 set margins lt left margin gt lt right margin gt lt paragraph margin gt lt max column gt Sets the left and right column margins for the center in margins and the reformat commands The paragraph margin is used in the reformat command only and is equal to the left margins if not defined If the max column parameter is present it sets the maximum number of columns in a line the default value is 32767 The default val
31. Personal Editor 32 Home Page http www pe32 com e Mail pe320pe32 com Contents A enee A A Se 2 Personal Editor 32 MAIN FEATURES ooie eiae ae eaea A 6 Personal Editor 32 new release features are A Ge 6 Personal Editor 32 main CAUSA as 6 Personal Editor 32 is completely customizable teal eis oad aie sion dee 7 Personal Editor 32 EE 8 Personal Editor 32 INSTALLATION AND USE ege tae fea es 9 Personal Editor 32 COMMAND LINE INSTRUCTIONS AA 12 set display 00 WS CO IAS RNE 12 SEL printer lt printer nadia 12 set tabs lt first col lt col EPS id rd 12 BOL tabs SCO eC Ol ies ld e co 12 SEL LADS ANI CONS EE 12 set margins lt left margin gt lt right margin gt lt paragraph margin lt max column gt eee 13 set linetrim lt off gt lt leading gt lt trailing gt lt COMPIESS gt cooooconococonononnnnnnncnn nono nonnnnnnnn ccoo cnn nnnnnn rra crnn anos 13 set backup lt file extensions or names including wildcard gt cnn 13 set colors lt back gt lt fore gt lt mark back gt lt mark fore gt lt cmd back gt lt cmd fore gt lt dialog back gt lt dialog fore gt lt found tore gt lt found baca 13 set syntaxcoloring lt index gt lt back kw gt lt fore kw gt lt back op gt lt fore op gt lt back st gt lt fore st gt lt back no gt lt fore no gt lt back co gt lt fore co gt lt back sk gt lt fore Ski 13 set syntaxcoloringext lt index gt lt file extensions or names including wildcard gt oooonocccnnc
32. With the mouse click you can select a command and with the double click you can copy the command in the command line Opens the most recently used files dialog box In the dialog box you may choose a file using arrows keys edit a file with the Enter key abandon the dialog with the Esc key edit multiple filesusing the numpad plus key edit all files using the numpad multiply key or delete a file from the most recently used list using the delete key With the mouse click you can select a file and with the double click you can open it help lt set command gt or lt key name gt or lt synonym command gt Help followed by one of the set commands e g help display or one of the key names e g help s f1 or one of the synonym commands e g help if fills the command line with the related command with all of its current parameters Help followed by the char keyword writes the ASCII code of the character under the cursor in the command line as xxx With no parameters help opens the commands help dialog box In the dialog box you may choose a command using arrows keys run a command with the Enter key abandon the dialog with the Esc key or move to a command by typing it s first letter With the mouse click you can select a command and with the double click you can copy the command in the command line lt 3 digits number gt Convert the 3 digits number in the relative ascii character and write it at the cursor position
33. an be downloaded and copied in the installation directory changing the name in PE32 KWD2 in order to enable the national words spell checker 49 Personal Editor 32 VISUAL BASIC SCRIPT USE What Is VBScript Microsoft Visual Basic Scripting Edition the newest member of the Visual Basic family of programming languages brings active scripting to a wide variety of environments including Web client scripting in Microsoft Internet Explorer and Web server scripting in Microsoft Internet Information Service Easy to Use and Learn If you already know Visual Basic or Visual Basic for Applications VBScript will be very familiar But even if you don t know Visual Basic once you learn VBScript then programming with the whole family of Visual Basic languages will then be easy VBScript Features Array handling Assignments Comments Control Flow Instructions Conversions Declarations Error Handling Expressions File System Access Formatting Strings Input Output Miscellaneous Functions Regular Expressions Objects Operators Options Procedures Variants VBScript use in Personal Editor 32 There are two ways to use VBScript in Personal Editor 32 execute one or more VBScript commands and procedures or execute a complete VBScript program From the editor command line use the first method by using the VbsExec command followed by one or more commands or use the second method by using the VbsRun command followed by the program
34. and you have to enclose each in double quotes e g def a a def a b up If between double quotes you need to insert a double quote you have to precede it with a back slash e g def a a def a b set date yy mm dd If you want to use a set command in a def command you have to enclose it in square brackets e g def a a set display 25 80 One or more of the commands could be a previously defined synonym Constant strings must be enclosed in single quotes Note that one key may invoke the actions of another key by referencing it in the sequence of commands by using the key command e g key enter lt nr gt or key u 1 lt nr gt The optional parameter lt nr gt is the number of times to repeat the key or the synonym Remarks can be entered between commands using the syntax remark A long list of commands can be divided into several lines by ending each line except the last one with a back slash 29 If the definition is typed on the command line it will be valid for only the current working session If saved into the profile file however it will be valid whenever the profile is loaded To remove a previous defined keys sequence you can execute it with an empty command list e g def a a syn lt name gt command command Defines a command name to use as a synonym for a sequence of commands The name can be up to 32 characters long and it must be different from any existing com
35. ands may be omitted if the delimiter character is a slash The last delimiter character may be omitted if no parameter is present If the string is not found the current macro if present is aborted unless parameter is present Optional parameters are S f sf repeat the search up to the last occurrence of the string select the matched text with a mark repeat the search until the end of the file or files is found and copy all lines containing the matched text into a new file called found with both s and f switches repeat the search until the end of the file or files is found and copy the matched text only into a new file called found repeat the search until the end of the file or files is found and move all the lines containing the matched text into a new file called found repeat the search up to the last occurrence and show the number of found strings repeat the search until the end of the file or files is found and fill a list with all found lines From the list you can choose a line and goto on it with the mouse or the enter key highlight the found strings with the colors defined in the set colors command See the change command for the meaning of all other optional parameters and for the meaning of the searching expressions in in the search string Examples of search string abc Matches abc A Nabc Aabc Matches a line with no characters the beginning of the line followed by t
36. cnncnnoncnns 13 set syntaxcoloringset lt index gt lt set command id a 14 set syntaxcoloringpro lt index gt lt profile file gt viii aia td 14 set historyon lt scrolllockon scrolllockoff shift control alt Off gt AAA 14 set expandon lt scrolllockon scrolllockoff shift control Off gt ann 14 set autocompleteon lt scrolllockon scrolllockoff shift control Off gt A 14 set markon csi COMO Alt otto oia 14 set popupmenuon lt rightbutton leftbutton doubleclick off gt lt on Off gt cee eee eee eeeeeeeeeeeeeeneeees 15 set helptil EE 15 s t confirm lt on EE 15 BOE ITISER ONO nnee A A 15 s t dat lt string gt ini ii ds 15 o A O 16 SEL GOERENS 16 ia aio o E 16 set statusline lt on off gt lt back gt lt fore gt lt modified gt lt On Off gt oooconocccnonoconcnoncnonancnnncconccnnnnona cono nonns 17 set commandline lt on off gt lt on off gt lt on off gt seCOlor 17 set oncomma nd Ee ts dencia das 17 LAKIA OM A A AE OI a 17 s t Pete 18 set eof Lont A A AE ACES 18 e ER 18 set carriageretura lt on off gt EE 18 SEL WOR Wy E 18 set uppercase ON OL roae RIN 18 set delimiters lt characters iii alii S aR aie aS tas 18 Set blankcompress OM iia 19 set v stimeou t ER 19 SN KEE 19 SEV DS Ka NEE 19 SUE 19 set CODE PAGE lt 0UMDE nn dd iii R AAS K ia 19 Set borders Ee 20 o AA O ON 20 set showbookmarks lt on off gt iii ii a adds 20 set locateswitch mnewsaxofnichtbre le cciisscsssscaveveccavsgieveceauc
37. containing all key macro assignments and current set commands If the filename is the previously opened file is activated If the filename is not present the next opened file is activated If the r parameter is added the file is opened in read only mode If the i parameter is added the workspace file is opened instead of being restored 23 If wild card characters are present in the filename all matching files are opened If the filename contains a reference to an environment variable enclosed by characters the variable content is expanded in the filename If the file extension is zip all files compressed in the archive are expanded and opened After the editing if you save one or all the files expanded these files are compressed in the original archive If the file is located in a ftp site e g ftp ftp abcdef com file a connection to the ftp site is opened and the file is downloaded At every file save or when the file is closed it is uploaded to the ftp site and the connection is closed If multiple files are opened from the same ftp site the user name and the password asked for the connection are saved and the connection stays opened until the last file is closed view lt filename gt Opens the file specified in a new file window in read only mode If the filename is PE32 re opens the previously opened file in read only mode If the filename is not present PE32 re opens the next opened file in read
38. d in the PROFILE FILE INSTRUCTIONS table if they are included between square brackets If you need to repeat the execution of one or more commands until a condition is valid you can include the commands between brace brackets You can include loops in the main loop until 10 levels of nesting J Each loop have to include at least one conditional instruction in order to break it The conditional instructions are locate and change commands next and prev keyword unknown string commands tab and backtab word commands cursor movement commands If no conditional command is included or the condition is always valid you can abort the loop pressing the Esc key Personal Editor 32 INSTALLATION AND USE If you download the installation program called PE32 MSI from the web site execute it and follow the simple instructions to install the files and to create a link to the program in the desktop If you are a registered user please copy the license file in the installation directory If you have the PE32 ZIP file unpack it in a temporary dir then run the INSTALL BAT program to create the dir C PE32 and to copy the distribution files and the license file there You may also create a directory and copy the files manually During the installation step and at the first use of the visual basic script commands please verify that you are logged in Windows with the administrator rights or execute i
39. e column number where the remarks are starting or leave it to zero After PE32_SEQUENCE_BEFORE type the column number where ends the sequence lines numbering starting from the first column This field is colored as the number field defined in the syntaxcoloring command With PE32_IGNORE_CASE you can cause the case of the keywords in the file to be ignored After PE32_STRINGS type one or more characters to define the string delimiters If you leave any of the above settings out of a keyword file then the default settings match the C language rules and are as follows PE32_SEPARATORS lt gt 2 amp 5 48 PE32_REMARK_BEGIN PE32_REMARK_END PE32_REMARK_LINE PE32_STRINGS The default keyword files installed with Personal Editor 32 are PE32 KWD5 PE32 KWD7 PE32 KWD C C MFC and Windows API keywords file PE32 KWD1 PE32 KWD2 PE32 KWD3 PE32 KWD4 HTML keywords file National language dictionary see below Dos batch files keywords file PE32 profile keywords file Visual Basic script keywords file PE32 KWD6 Visual Basic keywords file PE32 KWD8 PE32 KWD9 Assembler keywords file Java script keywords file Cobol script keywords file You may change your profile file in order to modify add or remove the syntax coloring settings to choose the best editor configuration All the national languages dictionaries available are present in the web site and c
40. e specific information filled in when they are imported All characters are imported as ascii code as char into the current file and only commands included between lt gt are interpreted as pe32 commands 35 Thus pe32 commands outside lt gt are just added to the file as text but pe32 commands inside lt gt have lt and gt ignored while the commands are run interpreted Any CRLF codes are translated into an insert line command unless they are preceded by 2 back slash characters Using these substitution functions you may input words during macro or synonym execution and execute conditional PE32 commands The syntax of these substitution commands is lt Command String_Variable_Name len Default_String_Value gt where the Command can be one of the following no command before the string name input set calc if else endif pe command and the String_Variable_Name is the name of the variable to be assigned with the Default_String_Value or the operator prompted value The Default_String_Value can be a fixed value or the name of a previously assigned String_Variable_Name The String_Variable_Name can be globally or locally defined e A global variable must begin with the _ character and is initialized only once e A local variable must not begin with the _ character and is initialized every time the macro containing a usage of the variable starts For first
41. ed between double quotes and can contain one or more of the following escape sequences Na bell b backspace f form feed n line feed r Carriage return t horizontal tab v vertical tab V double quote back slash lt nr gt the ASCII code of the character to use The default value is t n r 18 set blankcompress lt on off gt Enables or disables the compression of blanks to tabs when writing a file The default value is off set vbstimeout lt milliseconds gt Sets the timeout for any Visual Basic Script commands and procedures If VBScript execution takes more then the specified milliseconds a dialog box lets the user choose to continue or to abort the command Note that execution of the script continues while the dialog box is open and that the default timeout time is one minute 60000 ms If continue is chosen then the dialog box will reappear again after the specified time expires again Any values equal or less to O disables the timeout See the paragraph VISUAL BASIC SCRIPT USE for more information set vbsrefresh lt on off gt Enable or disable the screen refresh during the execution of Visual Basic Script commands and procedures The default value is on See the paragraph VISUAL BASIC SCRIPT USE for more information set vbsload lt pathname gt Load the specified script file after pe32 vbs load in order to add custom vbs procedures See the paragraph VISUAL BASIC SCRIPT USE
42. ed file If the file doesn t exist it is created zip lt zipfilename gt Compress the current file into a zip archive with the name specified The current file must not be opened from a zip archive and it stays opened after the command execution If the zip archive is already present the command adds the file to the archive unzip lt filename gt Extract the current zipped file into an ascii file with the name specified The current file has to be opened from a zip archive and it stays zipped and opened after the execution of the command quit all y Abandons all modifications on the current file and closes the file window If the all or the parameter is added PE32 repeats the quit command for all opened files If the y parameter is added PE32 doesn t ask for confirmation if the file is modified print Prints the whole file on the default printer printdoc m Prints the whole file or the marked lines if the m parameter is present using custom printer and page settings change oldstring newstring mnewpaxoichtb Searches from the current cursor position up to the end of the file for an occurrence of oldstring to be replaced with newstring The character used to delimit the strings is the first one non space following the change or the c word If the string is not found the current macro if present is aborted unless the i parameter is present Optional parameters are repeat the replacement until
43. ee yes yes yes yes yes yes u yes yes yes yes yes yes y yes yes yes yes yes yes w yes yes yes yes yes yes S yes yes yes yes yes yes y yes yes yes yes yes yes SR yes yes yes yes yes yes f1 yes yes yes yes yes yes f2 yes yes yes yes yes yes SE yes yes yes yes yes yes f4 yes yes yes yes yes yes fS yes yes yes yes yes yes f6 yes yes yes yes yes yes f7 yes yes yes yes yes yes f8 yes yes yes yes yes yes fo yes yes yes yes yes yes f10 yes yes yes yes yes yes f11 yes yes yes yes yes yes f12 yes yes yes yes yes yes o yes yes yes yes yes yes 1 yes yes yes yes yes yes SC yes yes yes yes yes yes Em yes yes yes yes yes yes 4 yes yes yes yes yes yes SCH yes yes yes yes yes yes 6 yes yes yes yes yes yes cae yes yes yes yes yes yes 8 yes yes yes yes yes yes o yes yes yes yes yes yes minus yes yes yes yes yes yes equals yes yes yes yes yes yes Ibracket yes yes yes yes yes yes rbracket yes yes yes yes yes yes backslash yes yes yes yes yes yes semi yes yes yes yes yes yes semicolon yes yes yes yes yes yes backquote yes yes yes yes yes yes 57 Key Name Normal Shift Ctrl Alt Shift Ctrl Ctrl Alt s c a u x comma yes yes yes yes yes yes quote yes yes yes yes yes yes padminus yes yes yes yes yes yes padplus yes yes yes yes yes yes slash yes yes yes
44. eference to an environment variable enclosed by characters e g PE32 file ext the variable content is expanded in the pathname e g C PE32 file ext This expansion is also present in all the editor commands regarding the files If the opened file extension is pe32 the default workspace file extension the editor restores the last state described in the workspace instead of opening the workspace itself See the workspace command below for more details The optional commands parameters are a list of commands chosen from the COMMAND LINE INSTRUCTIONS or the PROFILE FILE INSTRUCTIONS The COMMAND LINE INSTRUCTIONS must be enclosed in single quotes or can be enclosed in square brackets while the PROFILE FILE INSTRUCTIONS must be enclosed in square brackets In addition to make a group of commands take as a single argument on the command line it is best to enclose the group of commands in double quotes This is mandatory if the group of commands contain any delimiters commas or spaces For example PE32 File1 top cc l string execute Will open File1 positioned at the first occurrence of string PE32 Filel set display max Will open File1 using the maximum display resolution The optional switches are e r to open the preceding lt pathname gt in read only mode e g PE32 filel r e to open the help file e g PE32 e p lt pathname gt to use the pr
45. em ansi codepage is activated The default value is oem set tabinsert lt on off gt Enable or disable the lines indent pressing the tab key in insert mode The default value is off set openwith lt extensions gt Set PE32 as the default explorer application used to open a file with an extension included in the list The default value is no extension set currentline lt on off toggle gt Highlight or not the current line of the active file The toggle option invert the state of the command The default value is off set currentpos lt on off toggle gt Highlight or not the current cursor position in the active file when the cursor is in the command line The toggle option invert the state of the command The default value is on 21 set pecompatibility lt on off gt Enables or disables the original PE compatibility mode If disabled PE32 works exactly as now then the behaviour of some commands is not completely the same of the original PE program When the compatibility mode is enabled the following commands change the behaviour as described below page up down the page is scrolled with an overlap of one line page up down all the page is scrolled with an overlap of one line first nonblank move at the end of a line with blanks only file save tabs after a or character the blanks compression ends dos it acts in the same console window as the system command and it removes the optional after
46. enedaeaetoess 30 KA ico 30 A lit le ls ei lla ws ca a lada 30 Meecher EE 30 Syslemi lt commiand gt lt parameters gt lt di 30 dos lt command gt lt parameters gt ind 30 mail lt address gt object attachment 30 EE E 30 Ma da e acne el cado 31 help lt set command gt or lt key name gt or lt synonym Commandes 31 ES digits Ub its is 31 vbsexee lt Visual Basic Script COMMAS gt 3 25 c0 d53 vaacsesssnceisdsspnesiadousetessueaddva degt EE 31 APS HUI SECT ARC A A taal ace 31 CALC OR PLS SSIC gt DTG WOON AA 32 sort column column dinrck ooococccccncnnononononnnonnnononononononononononononononononononononononononononos 32 MEMU ae ongi Age eebe 33 at AAA O Unbeaten EE ESS 33 a AAA a Eed EE S 33 a a ie oaea EE ERREK E E ae ete BA eae E E E 33 EE 34 a EE 34 WOON TAI A ON 34 html E TEE E EE 35 claim al o a a e Mat ha 35 do et eto 35 CS A A cae eee nee eee ees 35 A OT 35 re EE 35 Command aliases available Sii aida 39 Personal Editor 32 PROFILE FILE INSTRUCTIONS A 40 Profile file ASTUCIA OH 40 Personal Editor 32 SYNTAX COLORING SEITIINOGR A 48 Personal Editor 32 VISUAL BASIC SCRIPT USEiwivisssicissccessisciesesicvaseegatedvecsasessactesdececeasnacaateseusaccessaes 50 What Is VBScript acaoasth EE 50 V BSCript Forti E E E E dud TE SEAN 50 VBScript Use in Personal Editor iio t 50 The following Personal Editor 32 functions are available from VBicnpt eee eeseeeeeeeeeeeeees 52 This is the list of
47. ep into the command 33 open These commands allow you to visually debug the macros Demo End stops the demo mode Creates a dialog box with the list of all opened files In the dialog box you may choose a file using arrows keys open it with the Enter key abandon the dialog with the Esc key select a file by typing the first letter quit a file using the numpad minus key save a file using the numpad plus key save all files using the numpad multiply key or quit all files using the numpad divide key With the mouse click you can select a file and with the double click you can open it workspace lt filename gt Creates a workspace file called lt filename gt with the extension pe32 and activates it as the current workspace The editor creates saves all the PE32 commands needed to restore the actual editing environment the opened files their cursor positions and the active mark into the workspace file Once the workspace file has been saved it can be restored and reactivated by opening it as a file with Personal Editor in this case you must specify the pe32 extension This causes the instructions in the file to be executed restoring the current editing state An active workspace is updated only with the quit all command In order to see or modify a workspace file you can add the ignore i flag at the end of the edit lt file gt command If a workspace is active and you open another workspace the previous
48. eusecysees dens nvccdansahen adasnnecdecaunedanaetoess 20 set changes witcn mine wpaxoic EEN 20 ls A OO 20 Set Dreier eenegen eege 20 SE Be 21 Setautosaye valle gt di il cid 21 is e AMA eege Eegen 21 set tabinsert o Olli EE 21 SEL Pel WI Me MLM GIONS iia 21 SELCUFFENTINE lt ON OFT togale gt ini nio litis 21 set currentpos lt on of to sale iii id iia 21 SL EE EE 22 s t abbrev o EE 22 dir KE ENEE 22 GEASS TE A OO 22 tename lt oldiles ne wal nia alitas 22 Tame lt A EE 23 macro EE ge 23 cd pati or chdir en EE 23 LING SOW A EE 23 COI UDS A A A A a oe da 23 pe32 s lt file gt commands lt file gt Ieommandel A 23 edit lt HlenamesT M00 li ai 23 VIEW STEM aS gt iia lla 24 file lt filename gt Itabsinotabel a a a a a aa a A A A aaa 24 save lt filename gt tabs notabs nni anaia ar aaa aE EEEE E CA 24 Append E ENEE 25 AP EAPIL NAME 25 MAA OS 25 guit fall EH 25 Pta 25 pintdoc m sia 25 change oldstring newstring mnewpaxoichtb oooooncccnnocccconocononocononcnononcnonnncnonnnnconnncncnncnnonnnoos 25 locate searchstring mnewsaxofichtbr lg oooooononocccinociconocononaccnnnononnnnnonnncnononononnnnncnnnnncnnccnonnnnos 28 def lt key gt ENN DEEN DEE 29 define lt key gt command COmmand iecjssccssacccdiviasdacavsvacan ca deed as iacavenseceeaneesaaca Gasbacasuseadnaeeds 29 syn lt name gt command COMMANA siccsiseotssseaverccsesegiadecsancensccygeasaees tecesaseahedasasnscedecd
49. file name All VBScript commands and VBScript programs must be legal syntactically in order to work properly When this is not true a message box with the problem and it s line and column positions will help you fix the problem 50 These sample commands can be typed on the command line vbsexec msgbox Message Box Test vbsexec var 10 string abc msgbox Var amp var amp String 8string vbsexec NewProcedure vbsrun c program vbs This sample procedure can be placed in the PE32 VBS file Execute it by typing VbsExec RemFunct on the command line From current position until matching C block depth comment out add to start of line all source lines Note Will comment all lead in lines before first block mark function RemFunct Dim regEx Matches Set regEx New RegExp Use regular expression regEx IgnoreCase True Set ignore case regEx Global True Set global search brace 0 exitloop 0 Loop over block or until EOF do Loop until end str pe32 line Get pe32 current line Increment count for blocks opened regEx Pattern Set pattern Set Matches regEx Execute str Execute search brace brace Matches count Count braces Decrement count for blocks closed regEx Pattern Set pattern Set Matches regEx Execute str Execute search brace brace Matches count Count braces Comment the line str str Add a C remark pe32 line str Set current pe32 line newrow pe32 row
50. for an a followed by zero or more blanks and a b Matches one or more occurrences of the previous character e g l a b x search for an a followed by one or more blanks and a b Matches any character within the class c1 c2 All characters starting with the character before the dash and ending with the character after the dash will be included in the search e g l a c e b x search for an a followed by a c ora d or an e and a b c1 cn If none of the supplied characters are dash then PE32 matches any of the specified characters e g l th aeiou ts x from here will match THAT THIS parenTHESis The above two forms can be mixed see a below c1 c2 Matches any character not in the class c1 c2 e g a c e b x search for an a followed by a character that is neither c nor d nor e and a b cl cn If none of the supplied characters are dash then PE32 matches anything but the specified characters e g th aeiou t x from here will match oTHERs The above two forms can be mixed see a below A Anchors the following match at the beginning of the line e g I an x search for an a followed by a n at the beginning of the line The match succeeds only if at the end of the line The sign must be at the end of the searching string e g l an x search for an a followed by a n at the end of the line Matches the string previous to the or the string af
51. har rubout join rj delete previous char and join at begin run lt filename gt macro run COMMAND macro run save lt filename gt save file without closing window FILE save lt tabs notabs gt scrolldown lt nr gt sd scroll down one or nr lines scrollleft lt nr gt rl scroll one or nr columns left scrollright lt nr gt rr scroll one or nr columns right scrollup lt nr gt su scroll one or nr lines up set abbrev lt on off gt set the commands abbreviated form set autocompletion lt control keys gt set key with space to enable HELP autocomplete set autosave lt value gt set seconds to autosave or 0 to disable set backup lt extensions gt set lt filename gt BackupPE at save or file WINDOW set backup set bkspinfreespace set backspace in free space OPTIONS set lt on off gt bkinfreespace set blankcompress set blank compression during save lt on off gt set borders lt characters gt set characters used to draw menu and dialogs HELP set borders set carriagereturn lt on off gt set cr before If set changeswitch mnewpaxoichtb set change command default switches set charset lt oem ansi gt set active codepage set codepage lt number gt set active codepage HEI DP set codepage set colors lt colors gt set back fore dialog colors WINDOW set colors set command
52. he end of the line Matches a line which starts with abc Matches a line which contains only abc A Z 0 9 Matches a capital letter followed by a digit A Za z0 9 Matches a character which is not alphanumeric 28 be t Matches bei followed by any character followed by a t ie bert belt bent ab c Matches ab c Note that tells the pattern matcher to take the asterisk literally abc Searches for one or more occurences of abc A Z A Z Matches a capitalized word if else Matches the word if or the word else A Z 1 Matches a line which contains two or more occurences of the same upper case word Note that 1 refers to whatever A Z matched def lt key gt command command or define lt key gt command command Defines a key as a Sequence of commands The keys can be normal name shift s name control c name alt a name or control shift u name The list of available keys name is present at the end of this document see the Personal Editor 32 keys name table Commands that may be used after the equal sign are listed in this section COMMAND LINE INSTRUCTIONS and in the following section PROFILE FILE INSTRUCTIONS and have to be enclosed between square brackets If a command contains square brackets you have to enclose it in double quotes e g def a a locate If you want to redefine one or more keys in a def comm
53. igits lt if Enter your name My name gt lt else gt lt endif gt If the variable Enter your name has the value My name or has the value of the variable My name then import the items represented by the first else import the items represented by the second when present lt pe command pe command gt Compile the commands and add them to the macro Simple usage of import command using the installed header txt file 38 This file helps the user to build a C header soliciting a program name and author It uses PE32 commands to set the date and time of creation and to rename the current file to the program name and cpp extension Commands to execute 1 e dummy 2 import HEADER TXT Explanation of the commands included in the header txt file a Program name is inserted into line 2 Note that a minimum of 20 characters are inserted and the program name is aligned to the left by padding with blanks if necessary b Author name is defaulted to Your name and is inserted into line 4 Note that a minimum of 20 characters are inserted and the author name is aligned to the left by padding with blanks if necessary c The current date and time are inserted in the header files without the user being prompted d The file is renamed to the inserted program name cpp Note that the minimum length of the program name string was changed to 1 from the original 20 characters effectively supp
54. lect a line or lines of text like a l or mark line or to open the commands context menu if enabled see the set popupmenuon command 3 Drag with the left mouse button to select a block mark like a b or mark block 4 Drag with the left mouse button while holding down the ctrl key to select a character mark like a c or mark char 5 Drag with the left mouse button while holding down the shift key to select a line mark like a l or mark line 6 Double click with the left button to select the word under the cursor like c w or get word 7 Click on the left or right buttons when the mouse cursor is on the status line and the scroll bar is moved see set statusline The left button changes the current file window by one page and the right button sets the new relative position in the current file window 8 Using the mouse wheel to vertically scroll the file s lines The mouse wheel management is available in only some operating systems and in only some window conditions not in full window for example 9 Within all dialog boxes you can use the mouse with the left button click you can select menus and commands and with the double click you can execute the command 10 If the tabbed windows are enabled and more than one file is opened you can click on the left button when the mouse cursor is on tab line where the filename is displayed to change the active file The arrow keys can be used with the shift the co
55. line lt on off gt lt on off gt set visibility of command line OPTIONS set commandline set confirm lt on off gt set confirm message during save or file OPTIONS set confirm 63 Command Abbr Description Menu set currentline lt on off toggle gt set highlighting of current line set currentpos lt on off toggle gt set highlighting of current position set cursor lt size gt lt size gt set cursor size for insert and replace set date lt string gt set format of date string OPTIONS set date set delimiters lt characters gt set characters to delimit a word WINDOW set delimiters set display lt rows gt lt columns gt or max set display rows and columns WINDOW set display set encryption lt on off gt set encryption during save or file OPTIONS set encryption set eof lt on off set ctrl z at end of file OPTIONS set end of file set expandon lt control keys gt set key to enable syntax auto expansion set helpfile lt pathname gt set pathname for context help HEI DP ser helpfile set historyon lt control keys gt set key to show dialog of previous commands OPTIONS ser historyon set insert lt on off gt set insert key condition upon load OPTIONS set insert set linefeed lt on off gt set If after cr OPTIONS set linefeed set linesback lt value
56. lllockoff shift control alt off gt Sets the key to press along with the up and down keys to show a dialog of previous commands The key press only works when on the command line From the history dialog you may select any recent command That command is then brought back onto the command line for editing and execution The default value is scrolllockon set expandon lt scrolllockon scrolllockoff shift control off gt Sets the key to press along with the space key to enable the synonyms auto expansion It executes an expand command at the cursor position The auto expansion only works when the cursor is on the file window The default value is scrolllockon set autocompleteon lt scrolllockon scrolllockoff shift control off gt Sets the key to press along with the space key to enable the words auto completion It executes an autocomplete command at the cursor position The auto completion only works when the cursor is on the file window The default value is scrolllockon set markon lt shift control alt off gt Sets the key to press along with the arrow keys to enable the text marking The default value is shift 14 set popupmenuon lt rightbutton leftbutton doubleclick off gt lt on off gt Sets the mouse key to press to open the context popup menu The popup menu items change depending on the cursor position command line or file lines and on the features enabled at the mouse click The second parameter enable or disable the movement
57. lors and the file modified colors The last parameter enables or disables the status line cursor that emulates a vertical scroll bar show the current line position in relation of the file total number of lines This relative position is indicated by an inverse video character mark When this parameter is enabled you can click with the left mouse button on the status line to move to the next or to the previous page of the file by clicking before or after the highlighted character Also with the right mouse button you can move the current line cursor to the selected relative file position See previous colors list set colors command When the status line is disabled all messages are displayed in the middle of the screen and will disappear after a key pressed The default values are on black brightwhite lightyellow on set commandline lt on off gt lt on off gt lt on off gt lt color gt Enables or disables the command line When disabled the command line will disappear only when the cursor is on the data The second parameter enables or disables the restore of the cursor position in the active file when the up and down arrow keys are pressed while the cursor is on the command line The third parameter enables or disables the suggestion of the command you are typing in the command line The most recent command or the most similar one are shown using the color defined as fourth parameter If you want to autocomplete the suggested com
58. lt numeric var gt pe32 MarkType Return the current mark type as 0 no mark if mark is in the current file 1 line mark 2 block mark 3 stream mark 4 line mark in the command line 5 block mark in the command line 6 stream mark in the command line if mark is not in the current file 9 line mark 10 block mark 11 stream mark 12 line mark in the command line 13 block mark in the command line 54 14 stream mark in the command line pe32 Message lt string var gt Write the string in the status line lt numeric var gt pe32 CommandCol Return the command line column number pe32 CommandCol lt numeric var gt Set the command line column number VBScript features are available on all systems where Internet Explorer is installed However you have to install and register two additional files to use VBScript from Personal Editor 32 See the INSTALLATION AND USE paragraph for more details For more information about VBScript features and syntax see Microsoft Visual Basic documentation at http msdn microsoft com en us library ms950396 aspx http msdn microsoft com en us library d1et7k7c VS 85 aspx http msdn microsoft com en us library tOaew7h6 VS 85 aspx To use VBScript with Personal Editor 32 you need an OCX control called MSSCRIPT OCX which is included in the installation package and in the operating systems from Windows 2000 and above 55 Personal Editor 32 Keys Name Table
59. mand The syntax is identical to the rules for the def command The difference between syn and def is that def assigns the sequence to a key while syn assigns the sequence to a new keyword One or more of the commands could be a previously defined synonym key lt key gt lt nr gt Executes all commands assigned to the key lt nr gt times lt nr gt defaults to one time about Displays the about box with release and license information ver Displays the about box with release and license information system lt command gt lt parameters gt lt gt Executes a shell command in the same console window dos lt command gt lt parameters gt lt gt Executes a shell command in a different console window To execute a dos command in a different window you can type dos command com c dir txt or dos command com k dir txt mail lt address gt object attachment Sends an e mail to the address and with the object specified using the current edit file as message body and attaching an optional file to the e mail history Opens the command history dialog box In the dialog box you may choose a command using arrows keys run a command with the Enter key abandon the dialog with the Esc key or delete a command from the history using the delete key 30 mru If the command line is not blank when the dialog is opened then only commands that start with what is on the command line will be displayed
60. mand delete all da delete all file lines TEXT delete all delete character dc delete current char delete join dj delete current char and join at end delete line dl delete current line TEXT delete line delete mark dm delete current marked characters MARK delete delete word dw delete current word TEXT delete word demo end de demo disable demo fast df demo fast demo slow ds demo slow demo step ds demo step dir lt pathname gt dialog box of files in directory FILE dir lt filters gt dos lt command gt execute dos command or open DOS TOOLS dos prompt lt parameters gt lt gt window down lt nr gt dn cursor down one or nr lines down all wl cursor down one line on all files dup line du insert copy of current line below TEXT dup line current line edit lt filename gt mri e open a new file with optional FIL E open parameters end keyword ek cursor to end keyword end line el cursor to end of line SEARCH end line end mark em cursor to end of mark MARK end mark end number en cursor to end number end remark er cursor to end remark end separator ea cursor to end of separator end string et cursor to end string end unknown eo cursor to end unknown end word we cursor to end of word SEARCH end word erase lt file gt delete file FILE erase erase begin line eb delete cursor to begin line TEXT erase to begin 60
61. mand hold down the left shift and control keys and release them If this function is enabled the macro using the left control and shift keys in the command line are not executed The default value is on on on blue set oncommand lt on off gt Sets whether PE32 starts with or without the cursor on the command line when a file is opened The default value is on set onmenu lt on off gt Sets whether PE32 opens or doesn t open the command menu at load time The default value is off 17 set bkspinfreespace lt on off gt Enables or disables the backspace key in free space If disabled a backspace in the free space moves the cursor onto the last non blank character of the line The default value is on set eof lt on off gt Adds or suppresses the CTRL Z byte at the end of the file The default value is off set linefeed lt on off gt Adds or suppresses the LF character after the CR character at the end of each line The default value is on set carriagereturn lt on off gt Adds or suppresses the CR character before the LF character at the end of each line The default value is on set wordwrap lt on off gt Enables or disables word wrap when the cursor reaches the right margin The default value is off set uppercase lt on off gt If on PE32 forces to upper case all characters from a to z The default value is off set delimiters lt characters gt Sets the characters to delimit a word The characters can be includ
62. me The run command however can run files containing any profile commands Thus after automatically recording keystrokes and saving them as a macro to a file you may edit that file and manually add any additional commands This allows you to easily operate on multiple files and to switch from edit mode to command mode as needed write lt filename gt Writes the current macro into the filename The current macro is defined by using the macro define command assigned to c q in the default profile When invoked macro define saves the actual commands that result from each keystroke as they are typed A second macro define will close the definition of the macro During recording of a macro you can pause and resume recording using macro pause command assigned to a q in the default profile Macro recording may be ended while it is paused Once the macro has been defined it can be executed by using the macro play command assigned to c g in the default profile Macros must act entirely on one file file switching using the edit command is ignored but may be played on numerous files demo lt fast slow step end gt Demo Fast refreshes the screen after each command included in a macro Demo Slow also adds a 250ms delay between each command Demo Step _ isplays on the status line the last macro command executed and waits for a key before continuing The ESC key will abort the execution of the macro Any other key will st
63. ns to assign commands to the keys def e alist of instructions to assign commands to the synonyms syn e a optional list of instructions and commands to execute at profile load To register Personal Editor 32 as the editor executed by system when you double click on a ascii file you can use the set openwith command or you can manually register it as the default application to open text files instead of Notepad in the File types dialog in My computer Options menu item Remember that to open files with a long name containing spaces you have to enclose all parameters between double quotes e g C PE32 PE32 EXE 1 10 You may use the Personal Editor 32 in the Visual C environment by adding an item in the tool menu Add a line in the Customize Tools dialog and type PE32 EXE in the command field type FilePath line CurLine column CurCol key esc in the arguments item and type FileDir in the initial directory item Invoking the tool will run PE32 on the currently selected file and place the cursor in the same position as the Visual C editor had it The mouse may be used while editing if you disable the Quick Edit Mode item in the Edit Options of the Options tab of the Dos window properties Reset this item in the PE32 shortcut properties too The functions available with the mouse are the following d Click on the left button to move the cursor to the indicated location 2 Click on the right button to se
64. nt That is there is no nesting of the feature allowed When a string variable is encountered in a macro for the first time the actual value is prompted for from the user On subsequent occurrences of the same string variable in the same macro the first value is automatically expanded into the macro code again e g lt Enter your name My name gt Fetches actual user name and places it into both the local variable Enter your name and into the current file If the user just hits enter then My name is used lt 10 My first name gt Fetches actual user name and pads it with blanks on the left until it is at least 10 characters long and places it into both the local variable My first name and into the current file lt _Type your name 20 gt Fetches actual user name and pads it with blanks on the right until it is at least 20 characters long and places it into both the global variable _Type your name and into the current file lt input _Type your name 20 gt Fetches actual user name and left justifies it if it is shorter than 20 characters and places it into the global variable _Type your name lt set Type your name John gt Set the value of the local variable Type your name to John lt calc number 2 0 10 varl var2 2 gt Evaluate the expression asking the vari and var2 values if they are not already present and place the result in the variable number using at least 2 integer d
65. ntrol or the alt key pressed to continously mark all the characters under the cursor see the set markon command When the Personal Editor 32 window takes focus i e becomes the active window it checks to see if any loaded files have been changed by other programs and if so it asks the user for permission to reload them 11 Personal Editor 32 COMMAND LINE INSTRUCTIONS All the following commands can be used on the invocation command line the editors command line or in a profile file Parameters that require one or more blanks must be enclosed in double quotes e g edit file name For the rest of this section square brackets denote optional items and they are not to be typed Also the lt and gt keys separate names for parameters and they are not to be typed either set display lt rows gt lt columns gt Sets the number of display rows and columns The maximum display rows is 512 and the maximum display columns is 256 The default values if you don t set the display size in the profile file are the current window rows and columns The rows and columns parameters can be substituted by the following fixed strings e max set the maximum possible rows and columns using the current font e large font alias for the standard setting 25 x 80 small font alias for the standard setting 50 x 80 set printer lt printer name gt Sets the default printer port name for the print command You can use any
66. o reformat lines and paragraph into margins Full mouse management wheel included Clipboard and internal buffer copy append and paste operations Multiple files management and files merge and append options Program execution without leaving the editor Full file or block of lines printing on local or network printer Personal Editor 32 is completely customizable Each keystroke can be assigned to one or more commands Syntax coloring is modifiable and updatable by the customer Different configurations profiles can be created and invoked The editor can be adapted to the GUI style of another editor and can be integrated in the programming environments Commands can be created for specialized editing tasks All the languages dictionaries and messages files can be modified and updated by the customer Personal Editor 32 interface The Personal Editor 32 interface is divided into a file window plus a command line and a status line the last two lines on the screen The size of the file window is configurable with a command in the profile file The command and the status lines are always one line high but may be enabled or disabled On the command line you can type any commands described in the COMMAND LINE INSTRUCTIONS table followed by the Enter key If you want to execute more then a command in the command line include them between square brackets Additionally you can type one or more commands describe
67. ofile file with the specified pathname as default e g PE32 Pc pe32 pe32 pro e d to do not clean the screen at PE32 exit e g PE32 d By default the PE32 profile file PE32 PRO the PE32 keywords files PE32 KWD and PE32 KWD the PE32 license file PE32 KEY the PE32 Visual Basic Script procedures file PE32 VBS and the PE32 message file PE32 MSG are read from the same directory as the executable file To install your preferred national language dictionary follow the instructions present in the SYNTAX COLORING SETTINGS paragraph The optional message file PE32 MSG if present is read to replace the original editor messages the commands help strings and the all the menu items Each message string or menu item has a unique number to identify it as written in the PES2MSG UK thatcontains the original english messages To replace one or more editor messages create a PE32 MSG file an fill it with the modified lines copied from the original file The profile contains the personalization commands for PE32 If you want a personal profile set the environment variable PE32PRO to the profile s pathname or use the p parameter e g SET PE32PRO C PE32 MY PRO See the COMMAND LINE INSTRUCTIONS and the PROFILE FILE INSTRUCTIONS tables for the instructions that can be used in this file Normally a profile file is divided in 4 different sections e alist of instructions to set the editor environment set e alist of instructio
68. oin at end dl delete line Delete the current line dm delete mark Delete the current mark dw delete word Delete the current word de demo end Disable the demo mode df demo fast Enable the demo fast mode ds demo slow Enable the demo slow mode dp demo step Enable the demo step mode dn down Move cursor down one line wl down all Move cursor down one line on all files du dup line Duplicate the current line ed edit Open a new file el end line Move cursor to the end of the line 42 Short Extended form Command description form em end mark Move cursor to the end of the mark we end word Move cursor to the end of the word eb erase begin line Erase from cursor to beginning of line ee erase end line Erase from cursor to end of line es escape Insert the typed key as ascii character ex execute Execute the command line command ep expand Run the current word as a synonym ek end keyword Move cursor to the end of the keyword eo end unknown Move cursor to the end of the unknown word et end string Move cursor to the end of the string en end number Move cursor to the end of the number er end remark Move cursor to the end of the remark ea end separator Move cursor to the end of the separator fm fill mark Fill the mark with the typed character fb find blank line Move cursor to the next empty line fn first nonblank Move cursor to the first non blank cha
69. racter gw get word Mark the current word in indent Move cursor to the left margin il insert line Insert an empty line after the current im insert mode Change cursor to insert mode it insert toggle Toggle cursor from insert to overstrike ic invertcase Invert the case of all marked chars ph prev history Show the previous command line nh next history Show the next command line jo join Join the next line to the current 43 Short Extended form Command description form ju justify line Align the line to the right margin jp justify paragraph Align the paragraph to the right margin ja justify all Align all lines to the right margin Ir learn Add a keyword to the current kwd file If left Move cursor left one char le left edge Move cursor to the screen left edge lg left margin Move cursor to the left margin In linenum Insert the line number in the file lt link to Open the web site at cursor position Ic lowercase Change all marked chars to lower case kd macro define Start stop recording a command macro ku macro pause Pause the recording of a macro kp macro play Play the last recorded macro mo mail to Send an e mail to the address at cursor position mb mark block Define start and end of a rect mark mc mark char Define start and end of a stream mark ml mark line Define start and end of a line mark mt mark tab Align all the marked lines to
70. ressing any padding with blanks Command aliases available set name macro edit view quit change locate locate def key system help help vbsexec vr vbsrun vbstimeout vbsrefresh line lt nr gt open import workspace lt vu a 00 lt 0 50 S URN 3 n II lt UNI ON s V I ll z Io 39 Personal Editor 32 PROFILE FILE INSTRUCTIONS All the following commands may be used on the command line if included in square brackets or used in the profile file after a key or syn definition def or syn They have to be included between square brackets If some commands present in the profile file are not included in def or syn commands they are executed when the profile file is loaded only if a file is already opened All commands that have a square bracket as part of a parameter can be included in double quotes e g I All empty profile file lines are ignored and all lines beginning with an asterisk remark are treated as remarks All commands may be typed in the short form or in the extended form see the table below Some commands may be followed by a character enclosed in single quotes to supply the value that would otherwise be requested Such commands include fill mark and all bookmark commands For example fill mark or fill mark bookmark set a or bookmark set al Profile file instructions table
71. ring var gt pe32 Get lt set command gt Return the current setting for any of the PE32 set commands Write as parameter the command without set e g tabs lt string var gt pe32 GetString lt string title gt lt string default gt Ask for a string in a message box with a title and a default string and return the typed string in the variable lt string var gt pe32 GetEnv lt string variable gt Return in the string variable the content of the Dos environment variable 52 This is the list of Personal Editor 32 properties available from VBScript lt numeric var gt pe32 Row Return the current row number pe32 Row lt numeric var gt Set the current row number lt numeric var gt pe32 Col Return the current column number pe32 Col lt numeric var gt Set the current column number lt numeric var gt pe32 Lines Return the total number of lines in the file lt numeric var gt pe32 MarkedLines Return the number of marked lines The mark can be in any opened file lt numeric var gt pe32 InsertMode Return the current insert mode 0 or 1 pe32 InsertMode lt numeric var gt Set the current insert mode 0 or 1 lt numeric var gt pe32 CommandMode Return the current command mode 0 or 1 pe32 CommandMode lt numeric var gt Set the current command mode 0 or 1 lt string var gt pe32 Filename Return the file name pe32 Filename lt string var gt Set
72. rs and one or more of the following keywords including the square brackets 24 the 2 digits hours number in 24h 12 the 2 digits hours number in 12h mm the 2 digits minutes number ss the 2 digits seconds number am the am pm string The default string is 24 mm ss set encryption lt on off gt Enables or disables the encryption of the current file during the save or file commands The default value is off If encryption is on you have to type the password and confirm it to encrypt the file After that the password stays valid for all following save or file commands or until another set encryption command is executed When encryption is active on a file the keyword Enc follows the file name in the status line The set encryption on command in the pe32 pro file activates file encryption on all files If the encryption is off and you open an encrypted file you have to enter the password to decrypt the file and the encryption state for that file stays on This password will be valid for all following save or file commands set restorecursor lt on off gt Enables or disables the initialization of the cursor to the last used position when loading any file in the most recently used file list The default value is on 16 set statusline lt on off gt lt back gt lt fore gt lt modified gt lt on off gt Enables or disables the status line and sets the background and foreground co
73. rs in the data file NEW Messages file to modify or translate all editor messages NEW Timed automatic save of all modified files NEW Export the syntax coloring in HTML and Rich Text Format NEW 9 improved syntax coloring files NEW 9 new national dictionaries for the spell checker Personal Editor 32 main features are 200 editing commands and more than 40 setting commands Different profile files for every file extension Workspaces management to save and restore editing sessions Codepages management for the international symbols Menu to execute all PE32 commands and instructions Open up to 1024 files in the same working session The size of editable files is limited only by the amount of memory that Windows can allocate Configurable syntax coloring for C C Java HTML BASIC ASM and BAT e Autocomplete for all languages keywords and spelling checker using many national dictionaries e Pop up commands history recently used files and directories dialogs e Regular search expressions with substitution 6 Support for line marking block marking and stream marking Many block operations move copy delete overlay fill and shift Fully remappable keyboard and keystrokes macro available Multiple ftp files editing and directories browsing Send e mail from the editor Visual Basic Script commands and file execution inside PE32 Get and set PE32 attributes from Visual Basic Script commands PE32 VBS file to load
74. t w create workspace file with current FILE workspace settings write lt filename gt macro save to file COMMAND macro write zip lt zipfilename gt compress current file and keep open zoom window zw return screen to single view WINDOW zoom 66
75. t using the option Run as Administrator otherwise some of the features cannot be enabled Create a link to the executable file drag the c pe32 pe32 exe entry with the right mouse button down and drop it on the desktop then select the create shortcut to option If you want to execute the editor from the dos prompt without to specify the full path please add the installation directory to the system path variable in the Control Panel System dialog In Windows 7 to remove all the window borders in the PE32 full screen mode open the shortcut properties and select the Automatic Position of the Layout page do it using the option Run as Administrator To run the program use the syntax PE32 switches commands lt pathname gt commands lt pathname gt commands where lt pathname gt is a specification of the file s that you want to edit switches are one or more of the optional switches here described and commands are one or more of optional commands here described It is possible to use long names wildcard characters and or net names e g PE32 server mail username mailarchive txt but remember that if the file name contains spaces you have to enclose it between double quotes It is possible open files present in a zip archive if the pathname used ends with the zip extension or open files present in a ftp server if the pathname begins with the ftp string If the pathname of the file to open contains a r
76. t line at cursor TEXT split line split screen ss split screen into 2 views WINDOW split screen syn lt name gt define command names as a synonyms command command system lt command gt sys execute shell command in same lt parameters gt lt gt window tab tb cursor to next tab tab word tw cursor to next word SEARCH next word time tm insert time at cursor top to cursor to top of file WINDOW begin file top all ta cursor to top in all files WINDOW begin all files top edge te cursor to top edge WINDOW top edge trim compress tc delete multiple blanks from line or TEXT trim compress mark trim leading tl delete leading blanks from line or TEXT trim leading mark trim trailing tt delete trailing blanks from line or TEXT trim trailing mark undo ud undo the last 255 commands or keys COMMAND undo unmark um clear the current mark MARK unmark unzip lt filename gt extract to ascii file up lt nr gt up cursor up one or nr lines up all ul cursor up one line all files uppercase uc change marked chars to uppercase MARK upper case 65 Command Abbr Description Menu vbsexec lt VBS ve execute vbs commands TOOLS vbs execute commands gt vbsrun lt filename gt vr run vbs file TOOLS vbs run view lt filename gt v open file in read only mode FILE view words count words in mark or file workspace lt filename g
77. t newfile gt name lt file gt Renames the current opened file to the specified name macro lt profile pathname gt Activates the specified profile file All existing key settings are preserved unless overwritten by commands in the loaded profile file cd lt path gt or chdir lt path gt Changes the current directory to the path specified or displays the current directory if no path is present line lt row gt lt column gt Moves the cursor to the line number and column number specified This command also works with only a line number column lt number gt Moves the cursor to the column number specified pe32 s lt file gt commands lt file gt commands Executes another copy of PE32 within the current one that opens the specified files and executes the specified commands If the first optional s parameter is not present the execution of the current PE32 process continue If the s first parameter is present the current PE32 process is suspended until the new PE32 process ends The only way to exchange data between the PE32 processes are the clipboard or the file Include the optional files and the commands between double quotes if they contain spaces edit lt filename gt mri Opens the file specified in a new file window If the m parameter is added PE32 inserts the file into the currently opened file at the current cursor position If filename is keydefs PE32 creates a file
78. ter the e g l ablac x searches for an al followed by a b or an a followed by a c Takes the next character literally and not as a searching expression If the next character after the backslash is a c a digit or a parenthesis see the below expressions 26 c a Ax Ww 3 ES ds W Note If the next character after the backslash one of thefollowing the relative character is replaced bbackspace nnew line rcarriage return ttabulation fform feed Eescape e g I a b x search for an a followed by a and a b Places the cursor at that position if the match is successful e g l ablcc x search for an a followed by ab and a c and places the cursor on the c Tags the pattern lt a gt This tag can be referred to in subsequent parts of the search string or in the replace string e g I abc 0 9 1 x search for abc any digit then abc Note that vi refers to the tagged pattern 1 which is abc Refers to the tagged pattern lt n gt N is a number from 1 to 9 Groups an expression For example to search for one or more occurrences of abc use abc Matches all alphanumeric characters Is the equivalent of a zA Z0 9 Matches all white space characters Is the equivalent of t Matches all alphabetic characters Is the equivalent of a zA Z Matches all numeric characters Is the equivalent of 0 9 Matches all filenames Is the equivalent of
79. the next tab mk mark backtab Align all the marked lines to the previous tab ma match brace Search for the next brace mm move mark Move the mark to the cursor position nk next keyword Move cursor to the next keyword no next unknown Move cursor to the next unknown word ns next string Move cursor to the next string nn next number Move cursor to the next number 44 Short Extended form Command description form nr next remark Move cursor to the next remark np next separator Move cursor to the next separator nw next window Move cursor to the next view nv next view Move cursor to the same file next view nu null No operation ob overlay block Overlay the mark at the cursor position pd page down Move cursor one page down pa page down all Move cursor one page down on all files pg paragraph margin Move cursor to the paragraph margin pu page up Move cursor one page up ua page up all Move cursor one page up on all files pe pathname Insert the current path name in the file po pop mark Restore a mark from the mark stack pm print mark Print marked chars on the default printer ps push mark Save the current mark in the mark stack pk prev keyword Move cursor to the previous keyword pw prev unknown Move cursor to the previous unknown word pt prev string Move cursor to the previous string pn prev number Move cursor to the previous number pr
80. three forms no command input and set The optional len parameter contains the minimum length of the string to write into the file being edited If the string is shorter than this length then it ispadded with blanks The string is aligned to the right if len is positive and to the left if it is negative If the string is longer than the supplied length or no length is specified then the full string is substituted No command Used to enter a string variable and copy it to the current macro String_Variable_Name is optional if the Default_String_Value is present For readability the String_Variable_Name can be included between double quotes Default_String_Value is optional if the String_Variable_Name is present For readability the Default_String_Value can be included between double quotes 36 Oinput Oset Ocalc if else Used to enter a string variable already assigned or not String_Variable_Name is optional if the Default_String_Value is present For readability the String_Variable_Name can be included between double quotes Default_String_Value is optional if the String_Variable_Name is present For readability the Default_String_Value can be included between double quotes If the Default_String_Value is not present and the variable is already assigned the actual value is used Used to set a string variable with a fixed value String_Variable_Name is optional if the Default_String_Value is present
81. to top Move cursor to the top of the file ta top all Move cursor to the top on all files te top edge Move cursor to the top of the window tl trim leading Remove leading blanks from line or mark 46 Short Extended form Command description form tt trim trailing Remove trailing blanks from line or mark tc trim compress Remove multiple blanks from line or mark ud undo Undo the last 255 commands or keys um unmark Deselect the current mark up up Move cursor up one line ul up all Move cursor up one lineon all files uc uppercase Change all marked chars to upper case ZW zoom window Return the screen to a single view These commands can be followed by the number of times to repeat the same function up lt nr gt down lt nr gt left lt nr gt right lt nr gt scrollup lt nr gt scrolldown lt nr gt scrollleft lt nr gt scrollright lt nr gt These commands can be followed by an expression to use the returned value in the evaluation linenum lt expression gt colnum lt expression gt If inside the square brackets there is a number only this is interpreted as the ASCII code of the character to insert in the current file e g 65 becomes A 12 becomes page eject 47 Personal Editor 32 SYNTAX COLORING SETTINGS Two profile file commands set syntaxcoloring and set syntaxcoloringext let you define which files have the syntax coloring
82. ue is 1 80 1 32767 set linetrim lt off gt lt leading gt lt trailing gt lt compress gt Removes no blanks leading blanks trailing blanks or multiple blanks from all file lines when the file is saved The default value is off set backup lt file extensions or names including wildcard gt Creates a backup file called lt filename gt BackupPE at every save or file command for all specified extensions or filenames including wildcard The default value is no extension set colors lt back gt lt fore gt lt mark back gt lt mark fore gt lt cmd back gt lt cmd fore gt lt dialog back gt lt dialog fore gt lt found fore gt lt found back gt Sets the background and the foreground colors for the normal file characters the marked characters the command line all the dialogs and the found strings Valid colors are black blue green aqua red purple yellow white gray lightblue lightgreen lightaqua lightred lightpurple lightyellow brightwhite The default value is Blue BrightWhite Red LightYellow Aqua Black Black Aqua BrightWhite Blue set syntaxcoloring lt index gt lt back kw gt lt fore kw gt lt back op gt lt fore op gt lt back st gt lt fore st gt lt back no gt lt fore no gt lt back co gt lt fore co gt lt back sk gt lt fore sk gt Sets the background and the foreground colors for every kind of word language keywords operators strings numbers
83. umber Move cursor to the begin of the number bb begin remark Move cursor to the begin of the remark bq begin separator Move cursor to the begin of the separator bc block from clipboard Copy the clipboard text as a block mark kc capitalize Capitalize the case of all marked chars ci center in margins Center the line in the margins cl center line Scroll the line to the window center ck clear marks Clear the current mark and the mark stack ce clear message Clear the message in the status line cn colnum Insert the column number in the file cg command toggle Toggle cursor from command to text co confirm change Ignored 41 Short Extended form Command description form ch context help Open the help file on the current word cf copy from command Copy the command line at the cursor position cp copy from clipboard Copy the clipboard at the cursor position cm copy mark Copy the mark at the cursor position cb copy to clipboard Copy the marked text into the clipboard cr create table Create a table using delimiter and marked lines ct copy to command Copy the current line into command line Ce cursor command Move the cursor into the command line ca cursor data Move the cursor into the text window dt date Insert the current date see set date da delete all Delete all file lines de delete char Delete the current char dj delete join Delete the current char and j
84. umn is not present If a mark is present only lines belonging to the mark are sorted If a block mark is present and there is no column parameter the comparison use the marked characters only If the first column value is negative or the last parameter contains a d the sort is descending If the last parameter contains an i the comparison ignore the character case If the last parameter contains a n the comparison is done converting the text into a number If the last parameter contains a r the comparison is done removing the leading blanks If the last parameter contains a c the sort is done removing all the duplicated lines compact 32 If the last parameter contains a k the sort is done removing all the lines with the same marked or specified columns menu Opens a menu to execute all PE32 commands and instructions With the mouse click you can select menus and commands and with the double click you can execute a command load lt filename gt Loads the current macro from the filename The current macro can be executed by using the macro play command assigned to c g in the default profile run lt filename gt Loads and executes the current macro from the filename Macros recorded with the macro define command and saved with the write command must act entirely on one file and entirely in cursor data mode The keystrokes typed in this process are converted to profile commands and saved into the specified filena
85. workspace is saved before the new workspace is opened If the workspace command has no parameters or the parameter is a directory name ending with backslash a dialog is opened to show all the workspaces present in the current or in the specified directory bookmarks Opens a dialog box to show all bookmarks present in the current file For each of them you can see the line and column numbers and the first part of the file line where the bookmark was set All bookmarks are saved at the file quit and restored at the file load In the dialog box you may choose a bookmark using arrows keys go to the bookmark with the Enter key abandon the dialog with the Esc key set the bookmark with the numpad Plus key remove the bookmark with the numpad Delete or Minus key remove all bookmarks with the divide numpad key or move the cursor to a bookmark by typing it s letter 34 With the mouse click you can select a bookmark and with the double click you go to the bookmark position html lt filename gt Convert the current opened file in a new file with the html extension and the html format The original data format and the foreground colors are converted If the filename is not present the html extension is appended to the current filename If the filename already exists it is opened and the content is erased before the conversion the disk data are overwritten at the first save operation rtf lt filename gt lines chars
Download Pdf Manuals
Related Search
Related Contents
取扱説明書 LED FOG TYPE1 AKH14A Mode d`emploi 050614 7085450 - 01 User manual for CORDON-2 - TS Release Notes ION Dx1x1x0-195/30-x version 1.2 Manual do Utilizador 利用規約(PDF) Installation and Assembly: - Select Security Systems Inc. Copyright © All rights reserved.