Old 02-23-2021, 07:52 AM   #1
Human being with feelings
amagalma's Avatar
Join Date: Apr 2011
Posts: 2,803
Default [IDE] Highlight all native lua modules

Lua lets you overwrite its modules.

"reaper" is highlighted, so you know if you are overwriting it or not. For example, this:
reaper = nil
Would remove all the reaper API from the script! By having it highlighted in the IDE (as it now is), you know it when doing it, so that you don't do it accidentally/unintentionally.

On the other hand, the methods of the lua modules are always highlighted no matter if you have overwritten them or not (which is good) *but* the modules' names are not highlighted! So you may accidentally overwrite them (by giving a value to the variables "table", "string", "debug" etc) and then wonder why their methods do not work..

For example:
table = {1,2,3,4,5}
a = table.concat(table)
Table.concat no longer exists, but since "table" is not highlighted like "reaper" is, I didn't understood that I overwrote it unintentionally.
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)

Last edited by amagalma; 02-23-2021 at 07:59 AM.
amagalma is offline   Reply With Quote
Old 02-23-2021, 08:15 AM   #2
Human being with feelings
vitalker's Avatar
Join Date: Dec 2012
Posts: 6,737

+1 from me
Originally Posted by Sexan View Post
Make a thread "F%#! you Reaper! I quit!" to get more views and feedback since these kind of threads get much more traction
SoundCloudFR: True Non-destructive GLUEAll the REAPER names
vitalker is offline   Reply With Quote
Old 02-23-2021, 08:25 AM   #3
Meo-Ada Mespotine
Human being with feelings
Meo-Ada Mespotine's Avatar
Join Date: Apr 2020
Location: Leipzig
Posts: 2,118

Yes, I totally agree.
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1385 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is online now   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 05:23 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.