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

SourcePawn Syntax Highlighting for Sublime Text 2


Post New Thread Reply   
 
Thread Tools Display Modes
mcpan313
Senior Member
Join Date: Mar 2010
Old 01-03-2013 , 21:06   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #21

sublime-snippet generator test.
see https://forums.alliedmods.net/showpo...6&postcount=19
__________________
sorry, for my poor english.
mcpan313 is offline
Send a message via MSN to mcpan313
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 01-03-2013 , 21:29   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #22

mcpan313 - very nice work!

Love that we can have our own includes like the NP++ xml

I have high hopes that you smart people will get this to a point where it can fully replace pawnstudio and its features.
__________________
View my Plugins | Donate
TnTSCS is offline
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 01-03-2013 , 22:42   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #23

Quote:
Originally Posted by mcpan313 View Post
I write a sublime-snippet generator for sourcepawn, like this.

...But current version, only have function auto-completion, Syntax highlighting testing......

Please report bug/suggestions

Installation


Screenshot
i cant seem to get this to work
__________________
Taking private C++/PHP/SourcePawn requests, PM me.
Zephyrus is offline
mcpan313
Senior Member
Join Date: Mar 2010
Old 01-03-2013 , 22:51   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #24

Quote:
Originally Posted by Zephyrus View Post
i cant seem to get this to work
Really? are u install "SourcePawn Syntax Highlighting" Package?
__________________
sorry, for my poor english.
mcpan313 is offline
Send a message via MSN to mcpan313
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 01-03-2013 , 23:59   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #25

Quote:
Originally Posted by mcpan313 View Post
Really? are u install "SourcePawn Syntax Highlighting" Package?
i found the problem, all the functions seem to start with lowercase letter but the function completion is case-sensitive. altho once i select a function form the completion list it will become the proper one with uppercase first letter, do you think it would be possible to add the uppercase one instead to the list or disable case-sensitiveness or something?
__________________
Taking private C++/PHP/SourcePawn requests, PM me.
Zephyrus is offline
mcpan313
Senior Member
Join Date: Mar 2010
Old 01-04-2013 , 00:16   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #26

Quote:
Originally Posted by Zephyrus View Post
i found the problem, all the functions seem to start with lowercase letter but the function completion is case-sensitive. altho once i select a function form the completion list it will become the proper one with uppercase first letter, do you think it would be possible to add the uppercase one instead to the list or disable case-sensitiveness or something?
yes, this problem bothering me the whole night, current haven't found better solution.

if u want use uppercase funclist, delete this line
Code:
		if (IsCharUpper(tabTrigger[0]))
		{
			tabTrigger[0] = CharToLower(tabTrigger[0]);
		}
__________________
sorry, for my poor english.

Last edited by mcpan313; 01-04-2013 at 00:32.
mcpan313 is offline
Send a message via MSN to mcpan313
mcpan313
Senior Member
Join Date: Mar 2010
Old 01-04-2013 , 04:29   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #27

generator up to v1.0.0.1, fix some bug in include file parser.

https://forums.alliedmods.net/showpo...6&postcount=19
__________________
sorry, for my poor english.
mcpan313 is offline
Send a message via MSN to mcpan313
Groger
Veteran Member
Join Date: Oct 2009
Location: Belgium
Old 01-10-2013 , 08:54   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #28

Quote:
Originally Posted by ecca View Post
Thank you sir for a good tutorial.

For those who don't understand how to install a theme.

Step 1


Step 2


Step 3
To be able to use package control you have to install it first :http://wbond.net/sublime_packages/pa...l/installation
Groger is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 01-14-2013 , 06:54   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #29

Quote:
Originally Posted by mcpan313 View Post
generator up to v1.0.0.1, fix some bug in include file parser.

https://forums.alliedmods.net/showpo...6&postcount=19
Nice job! Is there a reason you used underscores instead of the actual spaces or colons?

Example:
Code:
<snippet>
    <description>console</description>
    <content><![CDATA[CheckAccess(${1:AdminId_id}, ${2:const_String_command}, ${3:flags})]]></content>
    <tabTrigger>checkAccess</tabTrigger>
    <scope>source.sp, source.inc</scope>
</snippet>
Could be...
Code:
<snippet>
    <description>console</description>
    <content><![CDATA[CheckAccess(${1:AdminId:id}, ${2:const String:command[]}, ${3:flags})]]></content>
    <tabTrigger>checkAccess</tabTrigger>
    <scope>source.sp, source.inc</scope>
</snippet>
And then it will have the proper syntax highlighting with it.
__________________
GoD-Tony is offline
mcpan313
Senior Member
Join Date: Mar 2010
Old 01-14-2013 , 07:17   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #30

Quote:
Originally Posted by GoD-Tony View Post
Is there a reason you used underscores instead of the actual spaces or colons?
Look at this picture:
Attached Thumbnails
Click image for larger version

Name:	pic20130114200642.png
Views:	1079
Size:	14.3 KB
ID:	114539  
__________________
sorry, for my poor english.
mcpan313 is offline
Send a message via MSN to mcpan313
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 19:38.


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