AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++) (https://forums.alliedmods.net/showthread.php?t=310331)

disawar1 08-30-2018 08:48

SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
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
https://github.com/raziEiL/SourceMod...2.png?raw=true

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:
https://github.com/raziEiL/SourceMod...t.png?raw=true

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! :)

hmmmmm 08-31-2018 03:10

Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
Cool stuff, always annoyed me when I saw outdated documentation from the old autocomplete. Thanks for this :D

disawar1 08-31-2018 05:26

Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
Сurrently I missed some defines and public variables like: NULL_VECTOR, MaxClients. I'll try add it later.

disawar1 09-12-2018 09:06

Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
Relaese v3

Notes:
  • Files were generated with npp-generator (version 1.2.9)
  • Totally were generated: function: 1421, misc 123, define 1431
  • Generated from SourceMod 1.9 (build 6251)
Changes:
- Added missing defines

Also, I recommend to use 3P: Progress Programmers Pal plugin for autocompletion feature

404UserNotFound 09-18-2018 14:08

Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
I tried making syntax highlighting for NP++ before, but I ran into an issue where once the language file hits a certain length/size/# of characters, it starts ignoring everything after that specific limit which resulted in half-highlighted files. That's when I gave up on NP++ and switched over to Sublime Text.

disawar1 09-20-2018 21:32

Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
Notepad++ autocompletion is pretty garbage...3P plugin solved the problem. That's why I recommend to use it. I tried Sublime Text but there no docs, right?

404UserNotFound 09-21-2018 02:54

Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
Quote:

Originally Posted by disawar1 (Post 2616108)
Notepad++ autocompletion is pretty garbage...3P plugin solved the problem. That's why I recommend to use it. I tried Sublime Text but there no docs, right?

I use Sublime Text. I'm currently putting final touches on SourcePawn syntax highlighting for Sublime Text 3. No autocomplete/docs though, that stuff is far beyond my reach. An autocompletion package for SourcePawn does exist in Package Control but I haven't set mine up correctly so it does nothing for me. Plus I've got like 15 different development directories I'm trying to consolidate into one atm.

DJ Tsunami 09-22-2018 04:18

Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
Quote:

Originally Posted by 404UNF (Post 2616128)
I'm currently putting final touches on SourcePawn syntax highlighting for Sublime Text 3.

Why not just contribute to https://github.com/Dillonb/SublimeSourcePawn instead of making a new package?

404UserNotFound 09-25-2018 14:40

Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
Quote:

Originally Posted by DJ Tsunami (Post 2616251)
Why not just contribute to https://github.com/Dillonb/SublimeSourcePawn instead of making a new package?

Because I prefer not to? Because I made mine from scratch and would rather not attempt to contribute all that to an already existing project and hope that the pull request is approved (it probably wouldn't be). I suppose you could ask that same question to everyone who makes their own highlighting for Notepad++ as there's probably 3 or 4 versions out there now (this one, Decaprime's, mine), but at the end of the day, why bother?

8guawong 10-16-2018 19:34

Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
just upgraded to win 10 with a fresh install
had to reinstall notepad++ and saw this updated version :D
i think you should add how to install to your readme since i had to goto the old thread to find out how to install this :P

xerox8521 10-17-2018 09:36

Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
It does kinda on the github page

8guawong 10-19-2018 04:43

Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
Quote:

Originally Posted by xerox8521 (Post 2620057)
It does kinda on the github page

ok yea after reading it more carefully i see where it mentions on how to install this :)

Bacardi 10-22-2018 12:11

Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
thank you

Dragokas 10-25-2018 09:13

Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
That looks very-very useful.
Thanks, disawar1 !!!

Cruze 11-21-2018 09:50

Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
First of all, Thanks for this! Really useful <3
Needed one modification in this. Can you help me change the background color to black and text color to white :? ? White pains my eyes XD

Bacardi 11-21-2018 10:17

Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
Quote:

Originally Posted by Cruze (Post 2625023)
First of all, Thanks for this! Really useful <3
Needed one modification in this. Can you help me change the background color to black and text color to white :? ? White pains my eyes XD

Go NotePad++ Settings -> Style Configuration
Check box "Enable global background color", then choose background color

Cruze 11-21-2018 13:28

Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
Quote:

Originally Posted by Bacardi (Post 2625026)
Go NotePad++ Settings -> Style Configuration
Check box "Enable global background color", then choose background color

Thanks but how do I change black text color to white? otherwise I can't see some things..
https://i.imgur.com/Z3fJslh.png

Bacardi 11-21-2018 13:41

Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
Go to Language -> Define your language...
Tab "Folder & Default"
Default Style: Styler -> Foregroudn color

*edit
And check other Stylers

Cruze 11-22-2018 14:34

Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
Quote:

Originally Posted by Bacardi (Post 2625064)
Go to Language -> Define your language...
Tab "Folder & Default"
Default Style: Styler -> Foregroudn color

*edit
And check other Stylers

Thanks! Text color is white now!!
but symbols like
Code:

() {} = ;
etc still aren't visible because their color is still black for some reason..
https://i.imgur.com/Kh0HUvM.png

Bacardi 11-22-2018 14:50

Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
Look other "Stylers" in same window

Cruze 11-23-2018 01:06

Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
Quote:

Originally Posted by Bacardi (Post 2625246)
Look other "Stylers" in same window

Thank you so much!!
how I did it:
Language > Define your language.
Change "User Language" to "sourcemod".
Go to "Operators & Delimiter" and click "styler" above the "=,." symbols.

:)
https://i.imgur.com/0JqngZi.jpg

Dragokas 12-13-2018 15:59

Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
1 Attachment(s)
Can you help me, how to set font color and background for such tips:

disawar1 04-21-2019 18:11

Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
Quote:

Originally Posted by Bacardi (Post 2625026)
Go NotePad++ Settings -> Style Configuration
Check box "Enable global background color", then choose background color

That was useful advice thank you)

Due some path and folders was changed for Notepad++ v7.6+ I updated the installation guide on GitHub.

disawar1 07-06-2020 04:09

Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)
 
Plugin were updated!

Changes:
- Fixed #3 issue
- Plugin generates highlights of typeset syntax


All times are GMT -4. The time now is 21:09.

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