PDA

View Full Version : Syntax Highlighting for OllyScript in UltraEdit


TQN
July 11th, 2004, 21:46
I am using UltraEdit, and alway view and edit OllyScript in UltraEdit. I have created a language define for OllyScript in UltraEdit to enable syntax highlighting. If you enjoy, you can copy the below text, append to the wordfile.txt file in UltraEdit folder, and change the Lxx"OllyScript" to the next free language number.

/Lx"OllyScript" Nocase Line Comment = // Block Comment On = /* Block Comment Off = */ Escape Char = \ String Chars = "#? File Extensions = osc
/Delimiters = ~^&*()-+=|&#92;/{}[]:;"'<> ,. ?
/C1"Reserved variables"
&#036;RESULT
&#036;VERSION
CODEBASE CODESIZE
MODULEBASE MODULESIZE
/C2"Commands"
#INC
#LOG
ADD AI AN AND ASK ASM AO
BC BP BPCND BPL BPLCND BPMC BPHWC BPHWS BPRM BPWM
CMP CMT COB COE
DBH DBS DEC DM DMA DPE
EOB EOE ESTI ESTO EVAL EXEC ENDE
FILL FIND FINDOP
GN GPA GO GMI
INC
JA JAE JB JBE JE JMP JNE
LBL LOG
MOV MSG MSGYN
OR
PAUSE
REPL RET RTR RTU RUN
SHL SHR STI STO SUB
TI TICND TO TOCND
VAR
XOR
/C3"Registers"
EAX EBX ECX EDX ESI EDI EBP ESP EIP
/C4"Flags"
!CF !PF !AF !ZF !SF !DF !OF

We also can enable help for keyword of OllyScript in UltraEdit by add an item to OllyScript.chm into UltraEdit help menu . UltraEdit supports the CHM help file. But the current OllyScript.chm did not build with index support. We need a new OllyScript.chm file.

Hope you will like it.
Regards !
TQN

g30rg3_x
July 12th, 2004, 09:25
woah, its more great reading scripts with this add

thanks TQN

hacnho
July 13th, 2004, 01:50
i use EmEditor 4.04 for write my script. Me too, I have created a language define for OllyScript in EmEditor to enable syntax highlighting

View the demo at
http://nhandan.info/hacnho/temp/OllyScrip_EmEditor.jpg
("http://nhandan.info/hacnho/temp/OllyScrip_EmEditor.jpg
")

Use: Copy this code and save as script.esy

Code:

; EmEditor Syntax File
;
; To import this file to an existing configuration, select Configuration
; under the Tool menu, select Define Configurations, select a configuration
; you want to import to, press [Properties], select the Highlight page, and
; press [Import].
;
;Syntax for OllyScript (http://ollyscript.apsvans.com)
;written by hacnho/VCT2k4 (hacnho@hotmail.com)

#Highlight=on
#BeginTag=
#EndTag=
#CommentBegin=/*
#CommentEnd=*/
#LineComment1=//
#LineComment2=
#SingleQuote=on
#DoubleQuote=on
#ContinueQuote=off
#Escape=
#ScriptBegin=
#ScriptEnd=
#SpecialSyntax=off
#HighlightBraces=off

#Keyword color=3,word=on,rightall=off,case=off,insidetag=off,regexp=off
EAX
EBX
ECX
EDX
ESI
EDI
EBP
ESP
EIP

#Keyword color=7,word=on,rightall=off,case=off,insidetag=off,regexp=off
!CF
!PF
!AF
!ZF
!SF
!DF
!OF

#Keyword color=5,word=on,rightall=off,case=off,insidetag=off,regexp=off
&#036;RESULT
&#036;VERSION
CODEBASE
CODESIZE
MODULEBASE
MODULESIZE

#Keyword color=4,word=on,rightall=off,case=off,insidetag=off,regexp=off
^#INC
^#LOG
ADD
AI
AN
AND
ASK
ASM
AO
BC
BP
BPCND
BPL
BPLCND
BPMC
BPHWC
BPHWS
BPRM
BPWM
CMP
CMT
COB
COE
DBH
DBS
DEC
DM
DMA
DPE
EOB
EOE
ESTI
ESTO
EVAL
EXEC
ENDE
FILL
FIND
FINDOP
GN
GPA
GO
GMI
INC
JA
JAE
JB
JBE
JE
JMP
JNE
LBL
LOG
MOV
MSG
MSGYN
OR
PAUSE
REPL
RET
RTR
RTU
RUN
SHL
SHR
STI
STO
SUB
TI
ICND
TO
TOCND
VAR
XOR

psyCK0
July 13th, 2004, 11:34
Hehe, nice stuff gentlemen! Will be added to site as soon as its up =)