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

AMXX Keywords for Syntax Highlighting


Post New Thread Reply   
 
Thread Tools Display Modes
Owyn
Veteran Member
Join Date: Nov 2007
Old 11-12-2009 , 16:26   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #31

looked at your custom thingy,

- you can't close and open {} functions /* */ comments etc xml-like + , -

- some things are green just like comments

- pragma and include not gold

anyway, why not use C++ highlighting?

btw, how do i use all that cs_const.txt cs_macro.txt etc things in notepad++ for syntacsys hints like in studio?
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.

Last edited by Owyn; 11-12-2009 at 16:59.
Owyn is offline
Send a message via ICQ to Owyn
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-12-2009 , 18:39   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #32

Quote:
Originally Posted by Owyn View Post
- you can't close and open {} functions /* */ comments etc xml-like + , -
I've never used those and I'm not quite sure if we can't use that functionality in user defined syntaxes. You could try and search for how to add it.

Quote:
Originally Posted by Owyn View Post
- some things are green just like comments
Uh? What things. In my color scheme I have constants like PLUGIN_HANDLED as bold and green.

Quote:
Originally Posted by Owyn View Post
- pragma and include not gold
#pragma and #include are highlighted as they should be in mine. Do you want it like C++ syntax where the whole line is the color of the directive? If so, I don't know how to do that or if it's even possible.

Quote:
Originally Posted by Owyn View Post
anyway, why not use C++ highlighting?
It doesn't have AMX Mod X functions in it. I like my functions highlighted when they are included in AMX Mod X.

Quote:
Originally Posted by Owyn View Post
btw, how do i use all that cs_const.txt cs_macro.txt etc things in notepad++ for syntacsys hints like in studio?
The .txt files are just lists of the words that I got from my script. You can use them how ever you want to create your own syntax highlighting scheme or do whatever you want with them (I don't know many other use for them ).
__________________
fysiks is offline
xOR
Veteran Member
Join Date: Jun 2006
Location: x-base.info
Old 12-31-2009 , 21:11   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #33

i've been using notepad++ for my AMXX scripting since i started it, so it's great to find you've created this highlighting scheme.
C++ highlighting was quite good already but having the functions highlighted as well is much better.

so thank you for this. will give karma as soon as i can
__________________
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 12-31-2009 , 21:21   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #34

i couldnt get it to work
ill try again 2moro
gj anyway <3
__________________
minimiller is offline
Send a message via MSN to minimiller
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-01-2010 , 01:02   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #35

Quote:
Originally Posted by minimiller View Post
i couldnt get it to work
ill try again 2moro
gj anyway <3
Are you using userDefineLang.xml as is or are you trying to modify the existing one?
__________________
fysiks is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 01-01-2010 , 06:20   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #36

i only installed n++ yesterday and it didnt have 1 so i just whacked yours in the languages folder (i think)
__________________
minimiller is offline
Send a message via MSN to minimiller
xOR
Veteran Member
Join Date: Jun 2006
Location: x-base.info
Old 01-01-2010 , 10:44   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #37

i didn't have this file yet.
i am running windows 7, so i put it directly in C:\Users\x0R\AppData\Roaming\Notepad++

worked just fine for me.
__________________
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-01-2010 , 15:35   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #38

oh appdata my bad
i put it in notepad/languages
ill try that l8er
__________________
minimiller is offline
Send a message via MSN to minimiller
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-01-2010 , 18:12   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #39

%appdata%/Notepad++/ is the best place to put it.
__________________
fysiks is offline
xOR
Veteran Member
Join Date: Jun 2006
Location: x-base.info
Old 01-01-2010 , 18:31   Re: AMXX Keywords for Syntax Highlighting
Reply With Quote #40

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

it is set so that the .amxx file is created in the same directory where the .sma file is. if you want a different output directory simply replace $(CURRENT_DIRECTORY) with the directory you want it to be saved to.

i prepended cmd.exe /k so that the cmd box stays open and you can see possible compile errors. if you don't want that you have to remove the entire cmd.exe /k part from the command line and make single quotes (") out of the double quotes ("").

EDIT: updated the command to work with spaces in path names
__________________
Got more than one HL1 (CS, DoD, NS, TS, TFC, HLDM...) server? Check:

Last edited by xOR; 01-01-2010 at 19:08.
xOR 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 15:36.


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