AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   Easy Plugin CVar/Cmd Lists for Web Page/Github/Etc. (https://forums.alliedmods.net/showthread.php?t=306776)

ThatOneGuy 04-13-2018 20:55

Easy Plugin CVar/Cmd Lists for Web Page/Github/Etc.
 
1 Attachment(s)
I made a script to drop my sourcepawn scripting (.sp) files onto and have it put a list of CVars, player cmds, and admin cmds into the clipboard in a nice clean format. Simply drag/drop the file onto cvar_cmds_toclipboard.vbs and the output will be in your clipboard.

An alternate script (cvar_cmds_htmltoclipboard.vbs) makes the same list, but has the output put into spoilers for a web page. The spoiler I use have the following CSS:
CSS


And utilize the following javascript:
Javascript


Here is an example output from a test file I made put through both scripts:
Examples


The scripts check if something is commented out, but since it was developed for my coding style, it might need adaptations for some others. The scripts do support AutoExecConfig include as well. They were made for my convenience, but I thought I'd post em here for others to make use of if they want.

EDIT: Added Github script (cvar_cmds_githubtoclipboard.vbs) as well, providing github spoilers and formatting. For an example of the output, view the readme for my clan tags plugin: https://github.com/ThatOneHomelessGu...ster/README.md


All times are GMT -4. The time now is 22:40.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.