You are here: PSPad forum > English discussion forum > Re: Request : Code Explorer

Re: Request : Code Explorer

Goto Page: 1 2 3 Next

#1 Request : Code Explorer for QBasic

Posted by: pythonui | Date: 2015-05-22 05:29 | IP: IP Logged

Hello,

pastebin.com

Is it possible to create code explorer for this file type?

Script : QBasic
Extension: .bas
Code explorer:
Filename - File
Date - Date
Author - Author
Rev - Rev
List of functions - TEST_FUNCTION:
List of arrays - DIM LOC$[10],ARR$[10]
List of variables - LET HK$="TEST", LET LK=9

Edited 2 time(s). Last edit at 2015-05-22 05:53 by pspad.

Options: Reply | Quote | Up ^


#2 Re: Request : Code Explorer

Posted by: pspad | Date: 2015-05-22 05:53 | IP: IP Logged

LET something isn't variable declaration, but variable assignment.
It's hard to display variables in code explorer if there is no variable declaration and you can "create" same variable anywhere, once as string, once as number.

Edited 1 time(s). Last edit at 2015-05-22 05:54 by pspad.

Options: Reply | Quote | Up ^


#3 Re: Request : Code Explorer

Posted by: pythonui | Date: 2015-05-22 05:57 | IP: IP Logged

Yeah,Thats true!

Without "List of variables" is it possible code explorer for QBasic ?

NOTE: In the javascript we have code explorer that display the variables!

Edited 1 time(s). Last edit at 2015-05-22 05:59 by pythonui.

Options: Reply | Quote | Up ^


#4 Re: Request : Code Explorer

Posted by: pythonui | Date: 2015-05-22 06:00 | IP: IP Logged

Like

var a=10
var b=20

in code explorer we have

Variables
a
b

Options: Reply | Quote | Up ^


#5 Re: Request : Code Explorer

Posted by: pspad | Date: 2015-05-22 06:18 | IP: IP Logged

PSPad should be as universal as possible.
You want to include in Code explorer your own format information - author, e.t.c

Isn't possible for you to use VBS code explorer which already exists?

Options: Reply | Quote | Up ^


#6 Re: Request : Code Explorer

Posted by: pythonui | Date: 2015-05-22 06:22 | IP: IP Logged

I just need following,

List of functions - TEST_FUNCTION:
List of arrays - DIM LOC$[10],ARR$[10]
List of variables - LET HK$="TEST", LET LK=9

No need to display author and all!

NOTE: I have seen VBS code explorer but not working in my case!

Edited 1 time(s). Last edit at 2015-05-22 06:23 by pythonui.

Options: Reply | Quote | Up ^


#7 Re: Request : Code Explorer

Posted by: pspad | Date: 2015-05-22 06:24 | IP: IP Logged

Go to your QBasic highlighter definition

Fill in Document comment: REM\s(File\:.*)
It should list your line as note in Code explorer

Options: Reply | Quote | Up ^


#8 Re: Request : Code Explorer

Posted by: pspad | Date: 2015-05-22 06:25 | IP: IP Logged

pythonui:
I just need following,

List of functions - TEST_FUNCTION:
List of arrays - DIM LOC$[10],ARR$[10]
List of variables - LET HK$="TEST", LET LK=9

No need to display author and all!

NOTE: I have seen VBS code explorer but not working in my case!

I need some real example. Can you send me some source code where is more functions e.t.c.
Send it to support mail. I will delete it aftrer testing

Options: Reply | Quote | Up ^


#9 Re: Request : Code Explorer

Posted by: pythonui | Date: 2015-05-22 06:27 | IP: IP Logged

Yeah Sure !

I will send you script in sometime.

Thanks

Options: Reply | Quote | Up ^


#10 Re: Request : Code Explorer

Posted by: pythonui | Date: 2015-05-22 07:11 | IP: IP Logged

pastebin.com

You can find the script here!

Is it possible to display "ENTER" and "CALL" also in code explorer?

Just suggestion ! smiling smiley

Options: Reply | Quote | Up ^


Goto Page: 1 2 3 Next





Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR