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

SourcePawn Syntax Highlighting for Sublime Text 2


Post New Thread Reply   
 
Thread Tools Display Modes
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 01-14-2013 , 12:33   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #31

Quote:
Originally Posted by mcpan313 View Post
Look at this picture:
it doesnt work for me
__________________
Taking private C++/PHP/SourcePawn requests, PM me.
Zephyrus is offline
mcpan313
Senior Member
Join Date: Mar 2010
Old 01-14-2013 , 13:46   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #32

Quote:
Originally Posted by Zephyrus View Post
it doesnt work for me
Look at your sublime-keymap is modified by yourself or other pkg?

Default:
PHP Code:
"keys": ["ctrl+d"], "command""find_under_expand" 
Attached Thumbnails
Click image for larger version

Name:	pic20130115023857.png
Views:	855
Size:	25.2 KB
ID:	114545  
__________________
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-15-2013 , 12:42   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #33

Quote:
Originally Posted by mcpan313 View Post
Look at your sublime-keymap is modified by yourself or other pkg?

Default:
PHP Code:
"keys": ["ctrl+d"], "command""find_under_expand" 
ive checked and its set right but cant seem to get it to work still :/
__________________
Taking private C++/PHP/SourcePawn requests, PM me.

Last edited by Zephyrus; 01-15-2013 at 12:43.
Zephyrus is offline
Snaph
Junior Member
Join Date: Jan 2013
Old 01-15-2013 , 18:13   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #34

If anyone is interested, I used mcpan's script as a base for a Sublime plugin that dynamically generates completions for SourcePawn.

It's on my GitHub right now, though be warned it is currently incomplete.
Snaph is offline
mcpan313
Senior Member
Join Date: Mar 2010
Old 01-16-2013 , 11:11   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #35

Quote:
Originally Posted by Snaph View Post
If anyone is interested, I used mcpan's script as a base for a Sublime plugin that dynamically generates completions for SourcePawn.

It's on my GitHub right now, though be warned it is currently incomplete.
Thanks, you made our life easier!

st2generator.sp up to v1.0.0.3.
  • Add syntax highlighting
  • Add build system for sourcepawn
  • Add define/enum auto-completion

https://forums.alliedmods.net/showpo...6&postcount=19
__________________
sorry, for my poor english.
mcpan313 is offline
Send a message via MSN to mcpan313
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 01-16-2013 , 11:55   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #36

Quote:
Originally Posted by mcpan313 View Post
st2generator.sp up to v1.0.0.3.
  • Add syntax highlighting
  • Add build system for sourcepawn
  • Add define/enum auto-completion
Working great, nice job!
__________________
GoD-Tony is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 01-17-2013 , 15:24   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #37

Your build system didn't work for me on Mac, there is no option -D for spcomp. This does work:
Code:
{     "cmd": ["<spcomp>", "-i$file_path/include", "-o$file_path/../plugins/$file_name", "$file"],     "selector": "source.sp" }
Which also allows for include files to be outside the SourceMod folder, and outputs the smx to the plugins folder.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
mcpan313
Senior Member
Join Date: Mar 2010
Old 01-17-2013 , 15:44   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #38

Quote:
Originally Posted by DJ Tsunami View Post
Your build system didn't work for me on Mac, there is no option -D for spcomp. This does work:
Code:
{     "cmd": ["<spcomp>", "-i$file_path/include", "-o$file_path/../plugins/$file_name", "$file"],     "selector": "source.sp" }
Which also allows for include files to be outside the SourceMod folder, and outputs the smx to the plugins folder.
Thanks, I will update it.
__________________
sorry, for my poor english.
mcpan313 is offline
Send a message via MSN to mcpan313
Snaph
Junior Member
Join Date: Jan 2013
Old 01-20-2013 , 00:23   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #39

I'm ready to say that my plugin is in a usable state now. It now updates while you are editing as long as you stop typing for 1 second (configurable). I also fixed a bunch of bugs that made it near useless before.

Pick it up from my Github and give it a try (because I need bug testers ) There should be no issue running it alongside mcpan's code. If you do that, you should get the syntax hilighting and build system from his package and the completions from mine.

I will add mcpan's enum parsing code into the next version. After that I will work on adding to the parser so it can generate completions from the .sp file.
Snaph is offline
Dario z
New Member
Join Date: Jan 2013
Old 01-20-2013 , 06:36   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #40

I love Sublime Text 2, I find it better than Notepad++.
Thank you very much for this! :-)
Dario z is offline
Reply



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 15:21.


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