Posted: Sun Feb 24, 2008 9:18 pm
Peyman: Nice code, you should contribute more often. 

Ok this is work successfully, but you can't say Notepad is a good Editor. My commentedASM Create by Scintilla and you can see and edit Your assembly code colorful.PB wrote:I've been using this successfully for months. Not originally my code, but
I shortened it to the following form. Just select it from the Tools menu
when a source is present and voila!
Code: Select all
; Compile to an executable and add to the PureBasic 'Tools' Menu. ; Set 'Arguments' in the 'Tools' menu to "%TEMPFILE" (include the "). pb$=#PB_Compiler_Home RunProgram(pb$+"Compilers\PBCompiler.exe",Chr(34)+ProgramParameter()+Chr(34)+" /COMMENTED",pb$+"Compilers",1|2) RunProgram("Notepad.exe",Chr(34)+pb$+"Compilers\PureBasic.asm"+Chr(34),pb$)