AlliedModders

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

404UserNotFound 05-15-2018 20:18

Sublime Text 3 - SourcePawn Syntax Highlighting (20w03c)
 
So I went and made a thing. This is a brand new version of the SP syntax highlighting that I first released. I started from a new .sublime-syntax file to take advantage of variable storage.

This is meant as a beta testing release. Please report any instances of things not highlighting correctly here.


ThatKidWhoGames 05-15-2018 21:04

Re: Sublime Text 3 - SourcePawn Syntax Highlighting
 
I actually love you! Installing this right as I can, thank you!

404UserNotFound 05-16-2018 00:28

Re: Sublime Text 3 - SourcePawn Syntax Highlighting
 
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.

Maxximou5 05-16-2018 02:08

Re: Sublime Text 3 - SourcePawn Syntax Highlighting
 
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.

404UserNotFound 05-16-2018 13:05

Re: Sublime Text 3 - SourcePawn Syntax Highlighting
 
Quote:

Originally Posted by Maxximou5 (Post 2592395)
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.

Lubricant Jam 05-17-2018 03:55

Re: Sublime Text 3 - SourcePawn Syntax Highlighting
 
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.

404UserNotFound 05-17-2018 05:04

Re: Sublime Text 3 - SourcePawn Syntax Highlighting
 
Quote:

Originally Posted by Lubricant Jam (Post 2592518)
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)

Lubricant Jam 05-17-2018 10:51

Re: Sublime Text 3 - SourcePawn Syntax Highlighting
 
Quote:

Originally Posted by 404UNF (Post 2592523)
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 :bacon!:

Psyk0tik 05-18-2018 08:39

Re: Sublime Text 3 - SourcePawn Syntax Highlighting
 
Thank you for this. Looks pretty cool so far! :bacon!::bacon!::bacon!:

404UserNotFound 05-19-2018 18:10

Re: Sublime Text 3 - SourcePawn Syntax Highlighting
 
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.


All times are GMT -4. The time now is 03:18.

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