Raised This Month: $32 Target: $400
 8% 

[TOOLS] Notepad++ Auto-completion/Inline Docs/Syntax Highlighting


Post New Thread Reply   
 
Thread Tools Display Modes
Razmo51
Senior Member
Join Date: Aug 2011
Location: Event "player_death
Old 07-30-2015 , 14:22   Re: [TOOLS] Notepad++ Auto-completion/Inline Docs/Syntax Highlighting
Reply With Quote #181

Sorry for bumping this topic but ...


https://forums.alliedmods.net/showpo...&postcount=124
It would be awesome if someone could rewrite this plugin to match with new and old syntax
__________________
Sorry for my bad English, I'm Belgian
Razmo51 is offline
StSatan
Senior Member
Join Date: Apr 2010
Old 01-29-2016 , 17:27   Re: [TOOLS] Notepad++ Auto-completion/Inline Docs/Syntax Highlighting
Reply With Quote #182

I could not find syntax highlight for the latest sourcemod snapshots, so I made my own.

Tested on:
SM: 1.7 Branch (Build: 5294)
NPP: 6.8.8

maybe someone will need it, like me
Attached Files
File Type: zip sm_npp_tools.zip (322.0 KB, 396 views)

Last edited by StSatan; 03-09-2016 at 06:13. Reason: fix escape characters, add generator support for new syntax, minor fixes, increased buffer for read operations
StSatan is offline
Byte
Senior Member
Join Date: Jun 2010
Location: 📦 CCSPlayer
Old 02-29-2016 , 16:19   Re: [TOOLS] Notepad++ Auto-completion/Inline Docs/Syntax Highlighting
Reply With Quote #183

Quote:
Originally Posted by StSatan View Post
I could not find syntax highlight for the latest sourcemod snapshots, so I made my own.

Tested on:
SM: 1.7 Branch (Build: 5294)
NPP: 6.8.8

maybe someone will need it, like me
Yeah this is neat, thanks!

All I removed was the italics and its perfect for me

Beats using C# style for .sp files.
__________________
STEAM: /id/invexbyte | Github: Mo Beigi | Discord: Byte#0017
Community: Invex Gaming | My Plugins: Click Me!


Last edited by Byte; 02-29-2016 at 16:19.
Byte is offline
Unreal1
AlliedModders Donor
Join Date: Dec 2010
Old 03-09-2016 , 02:51   Re: [TOOLS] Notepad++ Auto-completion/Inline Docs/Syntax Highlighting
Reply With Quote #184

Quote:
Originally Posted by StSatan View Post
I could not find syntax highlight for the latest sourcemod snapshots, so I made my own.

Tested on:
SM: 1.7 Branch (Build: 5294)
NPP: 6.8.8

maybe someone will need it, like me
Teach me to install this?
Unreal1 is offline
StSatan
Senior Member
Join Date: Apr 2010
Old 03-09-2016 , 05:01   Re: [TOOLS] Notepad++ Auto-completion/Inline Docs/Syntax Highlighting
Reply With Quote #185

Quote:
Originally Posted by Unreal1 View Post
Teach me to install this?
If you made default installation of NPP, go to your npp installation directory, you need a subdirectory \plugins\APIs
copy sourcemod.xml to that directory.

After that you need to press keys WIN+R and type %appdata%\Notepad++ and press enter. Copy userDefineLang.xml to that directory. After that you need to reopen all .sp .inc files or choose your custom language manually (Language -> sourcemod). Thats all.

If it's not default install, maybe you need to import language manually. Go to Language -> Define your language.... Press import, and you need to choose where userDefineLang.xml located.

Last edited by StSatan; 03-09-2016 at 05:02.
StSatan is offline
SHAREN
Senior Member
Join Date: Dec 2011
Old 03-17-2016 , 07:13   Re: [TOOLS] Notepad++ Auto-completion/Inline Docs/Syntax Highlighting
Reply With Quote #186

how to make sure to pop up hints from * .ini files? And not only sourcemod.xml
SHAREN is offline
Send a message via Skype™ to SHAREN
StSatan
Senior Member
Join Date: Apr 2010
Old 03-17-2016 , 15:27   Re: [TOOLS] Notepad++ Auto-completion/Inline Docs/Syntax Highlighting
Reply With Quote #187

Quote:
Originally Posted by SHAREN View Post
how to make sure to pop up hints from * .ini files? And not only sourcemod.xml
Add words to end of sourcemod.xml file, which you want to pop up, for example:

<KeyWord name="your_word"/>

if you want to add hints from custom the file, you need to handle these files with script and add these words to sourcemod.xml

PS: attached extended sourcemod.xml with enums and defines

Upd: added sourcemod forwards docs in sourcemod.xml, also attached archive with sourcemod.xml that include auto-completion of all netprops and datamaps in CS:GO... You can search netprops by typing m_<type><part_of_name>, for example type m_fl and you can choose m_flVelocityModifier or type m_vec and you can choose m_vecOrigin or m_i and you can choose m_iAccount in pop-up window.
Upd2: added missing NULL_VECTOR and NULL_STRING
Attached Files
File Type: zip sourcemod.zip (113.6 KB, 277 views)
File Type: zip sourcemod_netprops_datamaps_csgo.zip (134.4 KB, 213 views)
File Type: zip sourcemod_netprops_datamaps_tf2.zip (136.4 KB, 123 views)

Last edited by StSatan; 03-21-2016 at 16:59. Reason: added missing TF2_GetClientTeam and TF2_ChangeClientTeam in userDefineLang.xml; added native ReadMapList in sourcemod.xml and some basic methodmaps names
StSatan is offline
Alienmario
Senior Member
Join Date: Aug 2013
Old 03-22-2016 , 17:22   Re: [TOOLS] Notepad++ Auto-completion/Inline Docs/Syntax Highlighting
Reply With Quote #188

StSatan, thanks for your auto complete with the new syntax.
Using it now, however I've adjusted the styling so it's more readable and prettier to the eyes (subjective).
I've also added support for pre-compiler folding style (#if #else ..) and Hexadecimal numbers.

Example


Download below, hope you like it
Attached Thumbnails
Click image for larger version

Name:	style.png
Views:	1380
Size:	34.5 KB
ID:	153041  
Attached Files
File Type: zip sourcemod.zip (114.0 KB, 413 views)
Alienmario is offline
proffs
Senior Member
Join Date: Jul 2013
Old 03-26-2016 , 17:12   Re: [TOOLS] Notepad++ Auto-completion/Inline Docs/Syntax Highlighting
Reply With Quote #189

Quote:
Originally Posted by Alienmario View Post
StSatan, thanks for your auto complete with the new syntax.
Using it now, however I've adjusted the styling so it's more readable and prettier to the eyes (subjective).
I've also added support for pre-compiler folding style (#if #else ..) and Hexadecimal numbers.

Example


Download below, hope you like it
Is it possible to compile plugins through NP++ directly?
__________________
proffs is offline
Alienmario
Senior Member
Join Date: Aug 2013
Old 03-26-2016 , 17:34   Re: [TOOLS] Notepad++ Auto-completion/Inline Docs/Syntax Highlighting
Reply With Quote #190

Quote:
Originally Posted by proffs View Post
Is it possible to compile plugins through NP++ directly?
Yes, follow the instructions here

You may also want plugin autoreload
Alienmario is offline
Reply


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 -4. The time now is 06:56.


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