Plugins Not Loading Correctly in the Editor

Sometimes when I load up a plugin in the editor, it looks like this, with the plugin code being displayed in the plugin window,  and won't work at all.


EDIT: I was downloading the html version of the plugin from Github, I needed to right click and save link on the "Raw" link to get the real script.


Untitled.png


Untitled.png

Original thread: https://forums.rpgmakerweb.com/threads/plugins-not-loading-correctly-in-the-editor.60235/