Raised This Month: $12 Target: $400
 3% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-04-2013 , 17:14   Notepad++ Syntax highlighting SM 1.5.1
Reply With Quote #171

.


I used NP++ V6.4.5
You need at least V6.2.x which have more styling groups.

Code:
/*
    Comments
    Just a example, to look color theme!
*/


// Comment

    "Text"
    'text'

#include    <sdkhooks>
#define        YLVIS    "What does the Fox say ?"

public OnPluginStart()
{
    HookEvent("event", event_callback, EventHookMode:EventHookMode_Pre);
}

public Action:event_callback(Handle:event, const String:name[], bool:dontBroadcast)
{
    new client = GetClientUserId(GetEventInt(event, "userid"));
    new Float:ABC = 20.0;
    new integer = 10;
    static plaah;

    return Plugin_Handled;
}

public OnClientPostAdminCheck(client)
{
    new bool:plah = CheckCommandAccess(client, "sm_admin", ADMFLAG_GENERIC):
}

install:
From Language>Define your language...>import exported_userlanguage_sourcemod.xml
Close and open Notepad++, choose *.sp file and
Select Language>sourcemod

This inluce also unfinished sourcemod.xml API, it have keywords but no notes and parameters added
Two kinds API files, one is case-sensitive and another ignores.
You can test by copy sourcemod.xml from ...APIs/sourcemod_ignoreCase_x/ folder
and replace old one ...APIs/sourcemod.smx
Then you need "refresh" by changing language and set back.

- Enable Settings>Preferences>Auto-Completion>
Enable auto-completion on each input+Function completion
Attached Files
File Type: zip notepad++ SM 151 Syntax highlighting_81013.zip (549.5 KB, 818 views)
__________________
Do not Private Message @me

Last edited by Bacardi; 10-07-2013 at 19:07. Reason: updated
Bacardi is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 10-05-2013 , 12:50   Re: [TOOLS] Notepad++ Auto-completion/Inline Docs/Syntax Highlighting
Reply With Quote #172

EmitSoundToClient.. and so on..

no colour..

Last edited by GsiX; 10-05-2013 at 12:50.
GsiX is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-05-2013 , 16:26   Re: [TOOLS] Notepad++ Auto-completion/Inline Docs/Syntax Highlighting
Reply With Quote #173

yeah, I noticed today I missing stock's.
I update when I can.. I'm playing with regex programs and patterns.
for that time, look/use those previous ones.

*Updated #171

*I forget add String and Float in 3rdgroup.
Do it manually or take new zip
*edit
I forget bool from 3rdgroup, do it manually, I update later

*updated
unfinished API
and filtered deprecated natives, stocks. You see those fonts thick red

Last edited by Bacardi; 10-07-2013 at 19:05.
Bacardi is offline
Marcus101RR
Veteran Member
Join Date: Aug 2009
Location: Tampa, FL
Old 10-06-2013 , 16:56   Re: [TOOLS] Notepad++ Auto-completion/Inline Docs/Syntax Highlighting
Reply With Quote #174

Very useful, downloading. Thank You.
__________________
Marcus101RR is offline
Send a message via AIM to Marcus101RR Send a message via Skype™ to Marcus101RR
lostprophetpunk
Member
Join Date: Oct 2012
Old 01-07-2014 , 02:15   Re: [TOOLS] Notepad++ Auto-completion/Inline Docs/Syntax Highlighting
Reply With Quote #175

I'm a little confused on how to fully install the update. Seeing as the zip you provide has a lot of files in which aren't explained where to be put :S
lostprophetpunk is offline
joac1144
Senior Member
Join Date: Dec 2012
Location: Copenhagen, Denmark
Old 03-16-2014 , 07:10   Re: Notepad++ Syntax highlighting SM 1.5.1
Reply With Quote #176

Quote:
Originally Posted by Bacardi View Post
.


I used NP++ V6.4.5
You need at least V6.2.x which have more styling groups.

Code:
/*
    Comments
    Just a example, to look color theme!
*/


// Comment

    "Text"
    'text'

#include    <sdkhooks>
#define        YLVIS    "What does the Fox say ?"

public OnPluginStart()
{
    HookEvent("event", event_callback, EventHookMode:EventHookMode_Pre);
}

public Action:event_callback(Handle:event, const String:name[], bool:dontBroadcast)
{
    new client = GetClientUserId(GetEventInt(event, "userid"));
    new Float:ABC = 20.0;
    new integer = 10;
    static plaah;

    return Plugin_Handled;
}

public OnClientPostAdminCheck(client)
{
    new bool:plah = CheckCommandAccess(client, "sm_admin", ADMFLAG_GENERIC):
}
install:
From Language>Define your language...>import exported_userlanguage_sourcemod.xml
Close and open Notepad++, choose *.sp file and
Select Language>sourcemod

This inluce also unfinished sourcemod.xml API, it have keywords but no notes and parameters added
Two kinds API files, one is case-sensitive and another ignores.
You can test by copy sourcemod.xml from ...APIs/sourcemod_ignoreCase_x/ folder
and replace old one ...APIs/sourcemod.smx
Then you need "refresh" by changing language and set back.

- Enable Settings>Preferences>Auto-Completion>
Enable auto-completion on each input+Function completion
How do I install this?
There's so many files
__________________
joac1144 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-16-2014 , 08:32   Re: Notepad++ Syntax highlighting SM 1.5.1
Reply With Quote #177

Quote:
Originally Posted by joac1144 View Post
How do I install this?
There's so many files
don't install, I need clean it and add rest of SM API...

Try use this
[TOOLS] Notepad++ Sourcepawn - Syntaxhighlighting|Autocompletition
Bacardi is offline
joac1144
Senior Member
Join Date: Dec 2012
Location: Copenhagen, Denmark
Old 03-16-2014 , 09:56   Re: Notepad++ Syntax highlighting SM 1.5.1
Reply With Quote #178

Quote:
Originally Posted by Bacardi View Post
don't install, I need clean it and add rest of SM API...

Try use this
[TOOLS] Notepad++ Sourcepawn - Syntaxhighlighting|Autocompletition
Well, okay, thanks
__________________
joac1144 is offline
Godis
Senior Member
Join Date: Jan 2014
Old 06-01-2014 , 15:05   Re: [TOOLS] Notepad++ Auto-completion/Inline Docs/Syntax Highlighting
Reply With Quote #179

I've used this for a while now, works like a charm!
Godis is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 06-22-2014 , 14:16   Re: [TOOLS] Notepad++ Auto-completion/Inline Docs/Syntax Highlighting
Reply With Quote #180

I like this, I just don't like trying to update it to add colors to new things because once you hit a certain amount of things being defined, Notepad++ just stops adding colors to the new things.

I tried defining colors for all the new stocks and such in some of the TF2-specific .INC files and Notepad++ just would not color them.

This was a year or two ago, so I'm not sure if that issue has been fixed by now or not.
404UserNotFound 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 08:04.


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