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

Sublime Text 2


Post New Thread Reply   
 
Thread Tools Display Modes
Baws
Veteran Member
Join Date: Oct 2012
Old 06-14-2014 , 13:07   Re: Sublime Text 2
Reply With Quote #11

What's the color scheme for PAWN?

@Klippy, it doesn't compile the file in the same directory. It compiles it somewhere else, but i found one file and it's name was: ${file_base_name}.amxx
__________________
Like my clean plugins and work?
Baws is offline
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 06-14-2014 , 14:18   Re: Sublime Text 2
Reply With Quote #12

Quote:
Originally Posted by OvidiuS View Post
Ok, i made it ;)


pawn.tmLanguage -> http://pastebin.com/X52pHgZL
pawn.sublime-completions -> http://pastebin.com/P7fnaSZW
Will you release the application?
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 06-14-2014 , 14:20   Re: Sublime Text 2
Reply With Quote #13

Quote:
Originally Posted by Backstabnoob View Post
Will you release the application?
Just download Sublime Text 2?
__________________

Last edited by Kia; 06-14-2014 at 14:20.
Kia is offline
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 06-14-2014 , 14:21   Re: Sublime Text 2
Reply With Quote #14

Quote:
Originally Posted by OvidiuS View Post
I made a program, which converts pawn.xml from notepad++ alliedmodders to pawn.sublime-completions file for sublime text editor. And i made one which extracts function names from pawn.xml.
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 06-14-2014 , 14:25   Re: Sublime Text 2
Reply With Quote #15

Oops, sorry.


Anyway, I have downloaded Sublime, but it is nothing for me, maybe some other day I will use it.
__________________
Kia is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 06-14-2014 , 14:28   Re: Sublime Text 2
Reply With Quote #16

Quote:
Originally Posted by Baws View Post
What's the color scheme for PAWN?

@Klippy, it doesn't compile the file in the same directory. It compiles it somewhere else, but i found one file and it's name was: ${file_base_name}.amxx
Is that "somewhere else" one directory up or just in a random directory on your hard disk? And what operating system are you using? Since i was using backslashes to navigate, and only Windows uses them.
klippy is offline
commonbullet
Veteran Member
Join Date: Oct 2005
Old 06-14-2014 , 14:31   Re: Sublime Text 2
Reply With Quote #17

Quote:
Originally Posted by Arkshine View Post
It's more advanced than Notepad++, stable and fast. You have some useful features. There is also a lot of plugins. Well, check the home page, and read it. It's a cool editor.
I agree, it's really cool and lightweight; and there are also Linux and OSX versions - which makes it very suitable for writing amxmodx plugins. I've been using it for web development only, though.

They don't seem to update the software very often as Notepad++ does, but that's not necessarily bad.
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 06-14-2014 , 14:34   Re: Sublime Text 2
Reply With Quote #18

I'd love to use it, but being able to automatically (to an extent at least) add contents of .inc files to the autocomplete is a must for me so I'll wait until someone releases something like that.
__________________
Currently busy working on a very large scale anime database project.

Last edited by Backstabnoob; 06-14-2014 at 14:34.
Backstabnoob is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 06-14-2014 , 17:46   Re: Sublime Text 2
Reply With Quote #19

So how do you get the auto complete to actually work?
I've tried for hours without any luck.

Edit: My bad, i fucked up the scope. Fixed now.
__________________

Last edited by Black Rose; 06-14-2014 at 18:39.
Black Rose is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 06-14-2014 , 19:57   Re: Sublime Text 2
Reply With Quote #20

Ouch, i found it. I'll attach code.
My "deserialized" class is named pawn.cs
and here is program.cs.
After you compile program, just put pawn.xml to same directory as binary and run it.

If code doesn't work you have to deserialize .xml by using method from second answer: http://stackoverflow.com/questions/3...e-xml-document (xsd);

Last edited by OvidiuS; 06-14-2014 at 20:10.
OvidiuS is offline
Send a message via Skype™ to OvidiuS
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 17:59.


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