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

SourcePawn Syntax Highlighting for Sublime Text 2


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Conic
Junior Member
Join Date: Mar 2011
Old 12-31-2012 , 11:08   SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #1

Hello, I was annoyed at not being able to use my favorite editor for SourceMod plugin development, so I created this plugin for Sublime Text 2.



This plugin provides basic syntax highlighting for SourcePawn in Sublime Text 2.

Installation is fairly simple.

First, install Package Control. When it is installed, press Control-Shift-P, type "Package Control: Install Package", hit enter, type in "SourcePawn Syntax Highlighting" and hit enter again. Congratulations, your Sublime Text now highlights SourcePawn files.

If you want to contribute, you may find the project's GitHub page here: https://github.com/Dillonb/SublimeSourcePawn

Please post your thoughts and experiences!

Last edited by Conic; 12-31-2012 at 11:10.
Conic is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 12-31-2012 , 12:00   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #2

neat - does Sublime Text 2 have a way to import dynamic includes for popup hint type of stuff?
__________________
View my Plugins | Donate
TnTSCS is offline
Conic
Junior Member
Join Date: Mar 2011
Old 12-31-2012 , 12:08   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #3

Probably. I included all the default library functions in pop up hints though.
Conic is offline
ecca
Sexy Santa
Join Date: Jan 2011
Old 12-31-2012 , 12:13   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #4

Mine look like this - http://i.imgur.com/pXv20.png. Mind sharing your colors :O?
ecca is offline
Conic
Junior Member
Join Date: Mar 2011
Old 12-31-2012 , 12:14   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #5

I use the colors from the Nexus theme. It's in Package Control if you want it.
Conic is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 12-31-2012 , 12:17   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #6

if I have

#include <whatever>

I was hoping it would read what's in that include file and provide it as tool tips with pop up and auto complete... but it doesn't... Like how PawnStudio does it.

Or maybe I need to ? LoL... just let me know if it's possible to have auto complete with tooltip/popup with dynamic declared includes or not before I waste too much time looking for the solution.
__________________
View my Plugins | Donate

Last edited by TnTSCS; 12-31-2012 at 12:18.
TnTSCS is offline
Conic
Junior Member
Join Date: Mar 2011
Old 12-31-2012 , 12:18   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #7

Yeah, I knew what you meant. I'll look into it.
Conic is offline
ecca
Sexy Santa
Join Date: Jan 2011
Old 12-31-2012 , 12:20   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #8

Thank you sir for a good tutorial.

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

Step 1


Step 2


Step 3
ecca is offline
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 #9

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
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 01-01-2013 , 22:03   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #10

ah i love you lol, since notepad++ v6.2 syntax highlighting hasnt been working properly, it doesnt detect escape chars, randomly stops highlighting, function completion isnt working either. tbh i didnt even know about sublime text 2 before this topic but i instantly fell in love with it and bought a license. its so much better in every way for coding php/pawn/python etc and it works on my linux desktop too
__________________
Taking private C++/PHP/SourcePawn requests, PM me.
Zephyrus 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 20:59.


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