Raised This Month: $404 Target: $400
 101% 

Sublime Text 3 - SourcePawn Syntax Highlighting


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
404UNF
( ͡ ͜ʖ ͡)
Join Date: Dec 2011
Location: 🍁
Old 05-15-2018 , 20:18   Sublime Text 3 - SourcePawn Syntax Highlighting
Reply With Quote #1

Comes in two flavors; 1.6 syntax-friendly (no deprecation highlighting for certain old syntax code usage) and 1.7 Transitional which features 1.6 syntax deprecation highlighting.

Also supports several custom community-made includes with more on the way over time. Contents are kept up to date with the latest 1.10 dev branch.

Found a bug or have a suggestion for a custom include to add? Submit an Issue on Github and use the appropriate label and I'll get right on it.

Check it out on Github, all the info you'll need is in the README.
__________________
I'm not a SourcePawn expert, I just play one on TV.
Want to join the SourceMod Discord server? Click here!


Last edited by 404UNF; 05-16-2018 at 16:23.
404UNF is offline
ThatKidWhoGames
Senior Member
Join Date: Jun 2013
Location: IsValidClient()
Old 05-15-2018 , 21:04   Re: Sublime Text 3 - SourcePawn Syntax Highlighting
Reply With Quote #2

I actually love you! Installing this right as I can, thank you!
__________________


I take custom plugin requests, add me on Steam for details.

Last edited by ThatKidWhoGames; 05-15-2018 at 21:05.
ThatKidWhoGames is offline
404UNF
( ͡ ͜ʖ ͡)
Join Date: Dec 2011
Location: 🍁
Old 05-16-2018 , 00:28   Re: Sublime Text 3 - SourcePawn Syntax Highlighting
Reply With Quote #3

I had planned on an initial release a few weeks ago, but life got in the way. Finally found the energy and drive to get this thing done and ready for the release.

I'll be adding in more custom include file highlighting over time. I'm working on a batch as we speak that I hope to push out tomorrow.
__________________
I'm not a SourcePawn expert, I just play one on TV.
Want to join the SourceMod Discord server? Click here!


Last edited by 404UNF; 05-16-2018 at 00:35.
404UNF is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 05-16-2018 , 02:08   Re: Sublime Text 3 - SourcePawn Syntax Highlighting
Reply With Quote #4

Looks pretty darn good. I'm not sure how I feel about all the dark colors, blues and greens.
Really like the option of 1point6 and 1point7.
However, if you find the time, you should submit the package.
__________________
Maxximou5 is offline
404UNF
( ͡ ͜ʖ ͡)
Join Date: Dec 2011
Location: 🍁
Old 05-16-2018 , 13:05   Re: Sublime Text 3 - SourcePawn Syntax Highlighting
Reply With Quote #5

Quote:
Originally Posted by Maxximou5 View Post
Looks pretty darn good. I'm not sure how I feel about all the dark colors, blues and greens.
Really like the option of 1point6 and 1point7.
However, if you find the time, you should submit the package.
I definitely do want to submit the package. I'll check that out in a bit. If you don't want to use the color scheme, tack .disabled (or any gibberish really) to the end of the file extension of the .sublime-settings file. It'll stop forcing that color scheme for SP files allowing your chosen color scheme to be used. You can also install Color Scheme Editor through Package Control and edit the colors that way if you so desire.
__________________
I'm not a SourcePawn expert, I just play one on TV.
Want to join the SourceMod Discord server? Click here!


Last edited by 404UNF; 05-16-2018 at 13:10.
404UNF is offline
Lubricant Jam
AlliedModders Donor
Join Date: Oct 2016
Location: United Kingdom
Old 05-17-2018 , 03:55   Re: Sublime Text 3 - SourcePawn Syntax Highlighting
Reply With Quote #6

Someone needs to do a good version of this for Visual Studio Code O.o

EDIT: Nvm, I found one https://marketplace.visualstudio.com...rcepawn-vscode

Good work, however.

Last edited by Lubricant Jam; 05-17-2018 at 03:56.
Lubricant Jam is online now
404UNF
( ͡ ͜ʖ ͡)
Join Date: Dec 2011
Location: 🍁
Old 05-17-2018 , 05:04   Re: Sublime Text 3 - SourcePawn Syntax Highlighting
Reply With Quote #7

Quote:
Originally Posted by Lubricant Jam View Post
Someone needs to do a good version of this for Visual Studio Code O.o

EDIT: Nvm, I found one https://marketplace.visualstudio.com...rcepawn-vscode

Good work, however.
I think VSCode also uses .tmLanguage files, so this should be compatible. Edit: Yes it is compatible, but more importantly, it's compatible with any other text editors that utilize the TextMate system (.tmTheme, .tmSnippets and .tmLanguage files). If I used VSCode, I'd probably combine this with the autocompletion functionality from the package you linked but that's just because I like customizing things. Right now I use a SourcePawn Completions package in ST3 that I'm quite happy with.

Thanks for the kind words (even though you tripped me up at first making me think my highlighting was crap with "Someone needs to do a good version of this", I'm tired and I think I read that wrong at first)
__________________
I'm not a SourcePawn expert, I just play one on TV.
Want to join the SourceMod Discord server? Click here!


Last edited by 404UNF; 05-17-2018 at 05:18.
404UNF is offline
Lubricant Jam
AlliedModders Donor
Join Date: Oct 2016
Location: United Kingdom
Old 05-17-2018 , 10:51   Re: Sublime Text 3 - SourcePawn Syntax Highlighting
Reply With Quote #8

Quote:
Originally Posted by 404UNF View Post
I think VSCode also uses .tmLanguage files, so this should be compatible. Edit: Yes it is compatible, but more importantly, it's compatible with any other text editors that utilize the TextMate system (.tmTheme, .tmSnippets and .tmLanguage files). If I used VSCode, I'd probably combine this with the autocompletion functionality from the package you linked but that's just because I like customizing things. Right now I use a SourcePawn Completions package in ST3 that I'm quite happy with.

Thanks for the kind words (even though you tripped me up at first making me think my highlighting was crap with "Someone needs to do a good version of this", I'm tired and I think I read that wrong at first)
My bad dude haha
Lubricant Jam is online now
Crasher_3637
AlliedModders Donor
Join Date: May 2012
Old 05-18-2018 , 08:39   Re: Sublime Text 3 - SourcePawn Syntax Highlighting
Reply With Quote #9

Thank you for this. Looks pretty cool so far!
__________________
AFK like JFK
Crasher_3637 is offline
404UNF
( ͡ ͜ʖ ͡)
Join Date: Dec 2011
Location: 🍁
Old 05-19-2018 , 18:10   Re: Sublime Text 3 - SourcePawn Syntax Highlighting
Reply With Quote #10

Currently working on an expansion to the custom include highlighting that will add support for the following includes;
  • SteamWorks (85%)
  • SteamTools (0%)
  • SMLib (5%)
  • MoreColors (100%)
  • MultiColors (0%)
  • Bank (0%)
  • Maybe some others...
Authors of includes will be added to the Github README.md as well. I meant to add those in initially but I was more focused on getting this released first.
__________________
I'm not a SourcePawn expert, I just play one on TV.
Want to join the SourceMod Discord server? Click here!


Last edited by 404UNF; 05-19-2018 at 18:17.
404UNF is offline
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 12:28.


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