View Single Post
Author Message
disawar1
AlliedModders Donor
Join Date: Aug 2011
Location: Russian
Old 08-30-2018 , 08:48   SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
Reply With Quote #1

About
Hi there! For a long time I did not programm in SourcePawn. Seems like my stuffs out of date and I want to update them.
I discovered that docs generate plugin is also very outdated and generates 60-70% of SM API. So, I provide the newer version.

SourceMod-Npp-Docs


Here the new API docs with all (I hope) function, define, enum, methodmap and fixed xml structure. Docs were generated by reworked generator plugin.

Features:
  • Generate auto-completion files.
  • Generate inline docs (sourcemod.xml).
  • Supports SourceMod 1.7 API specifics.

Changes:
  • Added better way to detect commentary.
  • Added methods docs.
  • Added more console stats.
  • Added xml filter.
  • Code optimization.
  • Detects all func params.
  • Detects enum & define correctly.
  • Detects methodmap selection.
  • Makes keywords to pop up correctly.

Server command:

sm_makedocs - starts to parse SourceMod includes and generates output files.

Methodmaps notes:
Quote:
Originally Posted by Notepad++ wiki
In future release of Notepad++, you will be able to add more characters - the dot is a likely candidate - by specifying the additionalWordChars parameter in the environment. However, this additionalWordChars is still not working
It's sad and I didn't find a way to make the methods work like in IDA.
However, I made methodpam strings to make life easier:


These strings are not actual SourceMod functions. The purpose of these strings is to provide access to documentation showing the methodmap structure.
Also you may convert them to code and vice versa to watch docs.

URL:

Old thread is here: [TOOLS] Notepad++ Auto-completion/Inline Docs/Syntax Highlighting


p.s If you find grammar error let me know!
__________________

Last edited by disawar1; 04-21-2019 at 18:01. Reason: blah
disawar1 is offline