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

[TOOLS] Atom Sourcepawn Syntax Highlighting v0.6.0


Post New Thread Reply   
 
Thread Tools Display Modes
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 01-19-2015 , 10:50   Re: [TOOLS] Atom Sourcepawn Syntax Highlighting v0.4.0
Reply With Quote #21

Code:
{
  "cmd": "spcomp.exe",
  "args": [ "-i{PROJECT_PATH}/include", "-o{PROJECT_PATH}/../plugins/{FILE_ACTIVE_NAME_BASE}.smx", "{FILE_ACTIVE}" ],
  "sh": false,
  "cwd": "{PROJECT_PATH}"
}
Maybe anyone need this.

Tested and works fine with Windows 7 (64 Bit), Atom 0.174.0 and Build 0.23.3
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.
Bara is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 01-19-2015 , 14:47   Re: [TOOLS] Atom Sourcepawn Syntax Highlighting v0.3.1
Reply With Quote #22

Quote:
Originally Posted by asherkin View Post
You have released it, at least enough to bring the license into play.
Derp, I have no idea what I was commenting back there. At any rate, they have now been removed since I've figured out how to find spcomp locally. Sorry for the license infringement.
__________________
~Wliu
Wliu is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 01-21-2015 , 19:29   Re: [TOOLS] Atom Sourcepawn Syntax Highlighting v0.4.1
Reply With Quote #23

0.4.1 has been released.
This version fixes issues where the newly-fixed language-specific settings were actually causing some issues (aka parentheses/spaces eating up characters, brackets indenting incorrectly, etc.).
Some unused regex (and, bitand, bitor, andeq, etc.) have also been removed.
__________________
~Wliu
Wliu is offline
Scrumilation
Member
Join Date: Oct 2014
Old 03-09-2015 , 14:45   Re: [TOOLS] Atom Sourcepawn Syntax Highlighting v0.4.1
Reply With Quote #24

Just decided to make this post because i noticed that i still haven't thanked you for this thread, not only for the plugin, but i decided to look up this text editor and i absolutely loved it, been using it since the first time i saw this thread.
Scrumilation is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 03-09-2015 , 15:55   Re: [TOOLS] Atom Sourcepawn Syntax Highlighting v0.4.1
Reply With Quote #25

Quote:
Originally Posted by Scrumilation View Post
Just decided to make this post because i noticed that i still haven't thanked you for this thread, not only for the plugin, but i decided to look up this text editor and i absolutely loved it, been using it since the first time i saw this thread.
I have an update planned for this (someone also sent a PR that helps with new-style syntax), but I've been procrastinating and not working on it . Thanks though!
__________________
~Wliu
Wliu is offline
seekenz
Member
Join Date: Mar 2015
Location: Poland
Old 03-11-2015 , 17:14   Re: [TOOLS] Atom Sourcepawn Syntax Highlighting v0.4.1
Reply With Quote #26

I created an account, just to say that this plugin is awesome! But as i've already registered i wanna ask about 2 things:
1. Is it possible to add functions autocomplete? You know, I'm typing "OnPlu" and it bumps up "OnPluginStart, OnPluginEnd ...", something like this:

2. Do you have any idea how to add hotkey code compilation? I've searched through all atom plugins, but none of it does what i want.

PS: I'm a Pole => my english isn't perfect => i get it, if you don't undestand everything i typed

Last edited by seekenz; 03-11-2015 at 17:16.
seekenz is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 03-11-2015 , 20:17   Re: [TOOLS] Atom Sourcepawn Syntax Highlighting v0.4.1
Reply With Quote #27

For 1) I'll be looking into that. It should definitely be possible now that Atom is seriously revamping its autocomplete system.
2) Try https://github.com/50Wliu/sourcepawn-compiler. You'll need to put it in your ~/.atom/packages/ folder. Then you can add whatever shortcut you want to it through File->Open Your Keymap and adding the following:
Code:
'atom-text-editor:not([mini])':
	'whatever-key-binding-you-want': 'sourcepawn-compiler:compile'
The keybinding has the format 'ctrl-alt-c'.
__________________
~Wliu
Wliu is offline
seekenz
Member
Join Date: Mar 2015
Location: Poland
Old 03-12-2015 , 13:48   Re: [TOOLS] Atom Sourcepawn Syntax Highlighting v0.4.1
Reply With Quote #28

1. OK, I'm looking forward to hearing news.
2. Unfortunately this package throws errors
Code:
At Cannot read property 'path' of undefined

TypeError: Cannot read property 'path' of undefined
  at Object.<anonymous> (/home/seekenz/.atom/packages/sourcepawn-compiler-master/lib/sourcepawn-compiler.coffee:3:54)
seekenz is offline
seekenz
Member
Join Date: Mar 2015
Location: Poland
Old 03-14-2015 , 15:23   Re: [TOOLS] Atom Sourcepawn Syntax Highlighting v0.4.1
Reply With Quote #29

OK, I've made a little research and unfortunately sourcepawn-compiler is down to date and is not compatible with the newest version of Atom.
seekenz is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 03-14-2015 , 16:29   Re: [TOOLS] Atom Sourcepawn Syntax Highlighting v0.4.1
Reply With Quote #30

Quote:
Originally Posted by seekenz View Post
OK, I've made a little research and unfortunately sourcepawn-compiler is down to date and is not compatible with the newest version of Atom.
Odd. I'm running it fine here on 0.187.0. Guess that shows how little I know about Coffeescript and Atom's internals right now .

Could you try Bara's solution instead then?
https://atom.io/packages/build
and then
Code:
{
  "cmd": "spcomp.exe",
  "args": [ "-i{PROJECT_PATH}/include", "-o{PROJECT_PATH}/../plugins/{FILE_ACTIVE_NAME_BASE}.smx", "{FILE_ACTIVE}" ],
  "sh": false,
  "cwd": "{PROJECT_PATH}"
}
__________________
~Wliu
Wliu 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 06:59.


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