AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   SourcePawn Syntax Highlighting for Sublime Text 2 (https://forums.alliedmods.net/showthread.php?t=204535)

Conic 12-31-2012 11:08

SourcePawn Syntax Highlighting for Sublime Text 2
 
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.

https://raw.github.com/Dillonb/Subli...aster/shot.png

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!

TnTSCS 12-31-2012 12:00

Re: SourcePawn Syntax Highlighting for Sublime Text 2
 
neat - does Sublime Text 2 have a way to import dynamic includes for popup hint type of stuff?

Conic 12-31-2012 12:08

Re: SourcePawn Syntax Highlighting for Sublime Text 2
 
Probably. I included all the default library functions in pop up hints though.

ecca 12-31-2012 12:13

Re: SourcePawn Syntax Highlighting for Sublime Text 2
 
Mine look like this - http://i.imgur.com/pXv20.png. Mind sharing your colors :O?

Conic 12-31-2012 12:14

Re: SourcePawn Syntax Highlighting for Sublime Text 2
 
I use the colors from the Nexus theme. It's in Package Control if you want it.

TnTSCS 12-31-2012 12:17

Re: SourcePawn Syntax Highlighting for Sublime Text 2
 
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 :rtfm: ? 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.

Conic 12-31-2012 12:18

Re: SourcePawn Syntax Highlighting for Sublime Text 2
 
Yeah, I knew what you meant. I'll look into it.

ecca 12-31-2012 12:20

Re: SourcePawn Syntax Highlighting for Sublime Text 2
 
Thank you sir for a good tutorial.

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

Step 1


Step 2


Step 3

Zephyrus 01-01-2013 22:03

Re: SourcePawn Syntax Highlighting for Sublime Text 2
 
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 :)

minimoney1 01-01-2013 23:56

Re: SourcePawn Syntax Highlighting for Sublime Text 2
 
Quote:

Originally Posted by Zephyrus (Post 1865124)
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.


All times are GMT -4. The time now is 17:51.

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