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: 315
K
KindOne Offline
Fjord artisan
Offline
Fjord artisan
K
Joined: Feb 2011
Posts: 315
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,274
L
Loki12583 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,274
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