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
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 #9

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
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 01-01-2013 , 23:56   Re: SourcePawn Syntax Highlighting for Sublime Text 2
Reply With Quote #10

Quote:
Originally Posted by Zephyrus View Post
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
Hah it's funny because the same thing basically happened to me... about 6 months ago. I used Sublime Text 2, and I just fell in love with it. I've been using it ever since.
__________________
Need help? PM me or add me on Steam.
My Steam




Quote:
Originally Posted by Rp.KryptoNite View Post
For some reason his Plugin never worked for me ,
@credits were added
im not stealing any plugins dude its my THING
minimoney1 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 14:57.


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