You are here: PSPad forum > English discussion forum > Request : Code Explorer for QBasic
Posted by: pythonui | Date: 2015-05-22 05:29 | IP: IP Logged
Hello,
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.
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.
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.
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
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?
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.
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
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=9No 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
Posted by: pythonui | Date: 2015-05-22 06:27 | IP: IP Logged
Yeah Sure !
I will send you script in sometime.
Thanks
Posted by: pythonui | Date: 2015-05-22 07:11 | IP: IP Logged
You can find the script here!
Is it possible to display "ENTER" and "CALL" also in code explorer?
Just suggestion !
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