This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

AMXX Keywords for Syntax Highlighting


Post New Thread Reply   
 
Thread Tools Display Modes
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 01-01-2010 , 18:52   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #41

thx xOR. I got the syntax working and ill do the compiler l8er
thx for ur help. I got annoyed with pawn studio crashing all the time
__________________
minimiller is offline
Send a message via MSN to minimiller
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-02-2010 , 03:49   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #42

Quote:
Originally Posted by xOR View Post
btw speaking of notepad++ tuning: if you want to be able to start compiling your plugin directly from notepad++ by pressing F9 (as it is in AMXX/Pawn Studio and other IDEs) then do the following in npp:
  • in main menu click Run and select Run...
  • enter this command line:
    cmd.exe /k ""C:\Path\To\amxxpc.exe" "$(FULL_CURRENT_PATH)" "-D$(CURRENT_DIRECTORY)""
  • click the Save... button
  • enter a name (e.g. "AMXX compile")
  • select F9 from the dropdown list or whatever hotkey you want
  • click OK
  • close the "Run" dialog
  • enjoy compiling from npp by pressing F9
The way I have it set up is that it compiles relative to the file that you have open. It's super nice when you are editing files on different servers and want to use the same button for both. It also outputs the .amxx to the /plugins/ folder. If that particular .amxx file exists it is overwritten (NO MORE DRAGGING!)

For this I use:

Code:
cmd /k ""$(CURRENT_DIRECTORY)\amxxpc.exe" -o"$(CURRENT_DIRECTORY)\..\plugins\$(NAME_PART).amxx" "$(FULL_CURRENT_PATH)""
With this, I have it use Windows executables on my Linux server! to compile my plugins directly on to the linux box.
__________________
fysiks is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 01-02-2010 , 09:54   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #43

ok its all working =]
is there a way to make the compiled file go into a folder where the source was?

e.g. source: \scripting\
compiled: \scripting\compiled\

i tried this, but it didnt work =[
Code:
cmd.exe /k ""Z:\Program Files\Pawn Studio\scripting\amxxpc.exe" "$(FULL_CURRENT_PATH)\compiled\" "-D$(CURRENT_DIRECTORY)""
__________________
minimiller is offline
Send a message via MSN to minimiller
xOR
Veteran Member
Join Date: Jun 2006
Location: x-base.info
Old 01-02-2010 , 11:22   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #44

Quote:
Originally Posted by minimiller View Post
ok its all working =]
is there a way to make the compiled file go into a folder where the source was?

e.g. source: \scripting\
compiled: \scripting\compiled\

i tried this, but it didnt work =[
Code:
cmd.exe /k ""Z:\Program Files\Pawn Studio\scripting\amxxpc.exe" "$(FULL_CURRENT_PATH)\compiled\" "-D$(CURRENT_DIRECTORY)""
you have edited the wrong path (source file path instead of output directory path).

try this:
cmd.exe /k ""Z:\Program Files\Pawn Studio\scripting\amxxpc.exe" "$(FULL_CURRENT_PATH)" "-D$(CURRENT_DIRECTORY)\compiled""

i don't know whether this folder is automatically created by amxxpc.exe if it doesn't exist. so if it doesn't work try creating the "compiled" subfolder by hand first.
__________________
Got more than one HL1 (CS, DoD, NS, TS, TFC, HLDM...) server? Check:
xOR is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 01-02-2010 , 11:43   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #45

sick
it worked
thx <3
__________________
minimiller is offline
Send a message via MSN to minimiller
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 02-07-2010 , 18:13   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #46

Great job. Just got it to work (damn those hidden folders). Looks amazing.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 02-07-2010 , 19:12   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #47

Great job. I saw it for the first time and I'll never go back to amxx studio or pawn studio.
__________________
Hi.
Kreation is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-07-2010 , 20:45   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #48

Quote:
Originally Posted by Owyn View Post
you can't close and open {} functions /* */ comments etc xml-like + , -
I found how to do it but it remove previous functionality.

If you put the braces in the "open/close" setting then they it won't highlight the matching brace when your cursor is next to it.

If you put the block comment characters in the open/close setting then the comment block won't be highlighted as a comment.
__________________
fysiks is offline
ehha
SourceMod Donor
Join Date: Apr 2006
Location: Sibiu
Old 02-26-2010 , 17:53   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #49

Any idea on how to change the color of func_one in both cases?
Like AMXX studio?

PHP Code:
new tmp1tmp2;
public 
func_onearg1arg2 )
{
    
// do stuff with atg1 & arg2
}

func_onetmp1tmp2 ); 
__________________

Last edited by ehha; 02-26-2010 at 17:56.
ehha is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-26-2010 , 17:55   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #50

The User Defined syntax highlighting is not that sophisticated.
__________________
fysiks 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:38.


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