Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 2 3 4 5 6 … 18 Next »
Collapsable regions?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Collapsable regions?
15-06-2020, 07:30 PM,
#1
frdhog Offline
Hasn't finished a ship in 2 years
****
Posts: 72
Threads: 31
Joined: Feb 2016
Collapsable regions?
Is there a way to group and collapse regions of code rather than just functions, if statements and the likes?
If not, I would like to suggest the following (or add it as an alternative to the existing)
Code:
--@@ OPTIONAL HEADER NAME [THE JUICY CODE ITSELF] @@--
Website Find
Reply
16-06-2020, 04:00 PM,
#2
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Collapsable regions?
You can use blocks to accomplish this, e.g.
do
-- Your code section here.
end
They also scope local variables which can be useful.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.