mIRC Home    About    Download    Register    News    Help

Print Thread
Script Editor: Collapsible Code Sections #265481 10/05/19 12:12 PM
Joined: Dec 2002
Posts: 29
M
mruno Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Dec 2002
Posts: 29
I know this probably would take some work, but it would be very beneficial if the script editor was collapsible for different code sections.
Example: If you paste some json code at https://jsonformatter.curiousconcept.com/ you can collapse it by section. See this imgur post to visualize what I am talking about.

Sections such as alias, raw, ON EVENTS could be set as collapsible and would help the readability for those of us with large scripts.
Thank you

Re: Script Editor: Collapsible Code Sections [Re: mruno] #265485 14/05/19 03:17 PM
Joined: Feb 2009
Posts: 20
W
WKN Offline
Ameglian cow
Offline
Ameglian cow
W
Joined: Feb 2009
Posts: 20
I think mIRC is "mainly" an IRC client, not a code editor.

So in my opinion, it is most worthy Khaled is concentrated on that functionality than "wasting" time in functions for the buildin script tool.

If you want more, use an external editor to script.

Re: Script Editor: Collapsible Code Sections [Re: mruno] #265490 15/05/19 10:46 PM
Joined: Feb 2011
Posts: 318
K
KindOne Offline
Fjord artisan
Offline
Fjord artisan
K
Joined: Feb 2011
Posts: 318
Have you tried mSLDev?

https://forums.mirc.com/ubbthreads.php/ubb/showflat/Number/241147/

It can only collapse the entire alias/OnEvent/whatever, not sections inside of them.

Development has stalled so anything added after December 2014 (like "on *:PARSELINE:{}") will give errors.

The download link on the front page has a version from March 2013.

If you want to try the latest version from December 2014: http://msldev.com/download/win/latest_build.zip


irc.swiftirc.net #msl (mIRC Scripting Language)
Re: Script Editor: Collapsible Code Sections [Re: KindOne] #265491 15/05/19 11:29 PM
Joined: Jan 2004
Posts: 1,275
L
Loki12583 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,275
The VS Code mIRC extension supports collapsing and has been updated to all keywords as of 2017, it's on github so you can fork as needed.

https://marketplace.visualstudio.com/items?itemName=lol2k.mirc
https://github.com/lol2k/vscode-mirc

Re: Script Editor: Collapsible Code Sections [Re: mruno] #265948 19/08/19 10:30 AM
Joined: Feb 2015
Posts: 49
K
kap Offline
Ameglian cow
Offline
Ameglian cow
K
Joined: Feb 2015
Posts: 49
I agree with mruno. When you code blocks are larger than your screen can display, it would be very beneficial. Presently I find myself porting code to and fro another editor that does support this. This is not ideal.


irc://irc.mircscripts.net:+6697/chat
Re: Script Editor: Collapsible Code Sections [Re: kap] #265954 20/08/19 06:58 PM
Joined: Aug 2019
Posts: 3
C
Chokehold Offline
Self-satisified door
Offline
Self-satisified door
C
Joined: Aug 2019
Posts: 3
I agree as well, I have very much noticed difficulty tracking end braces when coding with nested if statements.
I would very much love a collapsible editor.