Project X Forums
http://px.worms2d.info/forum/

Notepad++ support for EAX / PX scripts
http://px.worms2d.info/forum/viewtopic.php?f=15&t=2031
Page 1 of 2

Author:  DebugErr [ Sat Mar 07, 2015 9:10 pm ]
Post subject:  Notepad++ support for EAX / PX scripts

I wrote syntax highlighter, folder and auto-complete and more support for Notepad++!

Why another editor for PX script code? Simple.
  • The built-in PX editor does not indent correctly.
  • The built-in PX editor uses virtual end line space which creates useless whitespace messing up the indentations.
  • The built-in PX editor has bad and even wrong syntax highlighting (I'm looking at you, hex numbers).
  • The built-in PX editor does not support folding of code.
  • The built-in PX editor has no search and replace functionality.
  • The built-in PX editor does not provide reformatting your code to look nicely.
  • The built-in PX editor auto-complete list is bugged and does not show the last entry correctly on some PCs.
  • The built-in PX editor interface is a space waster.
  • The built-in PX editor doesn't work on systems with large DPI settings (except you use my other fixes here, phew!).
  • The built-in PX editor killed John F. Kennedy.
  • To cut the list short, the built-in PX editor is a piece of shit.

Here's a list of the features of my Notepad++ EAX support:
  • Typical Notepad++ feature like every good text-editor should have: Search & replace, block edit, line numbers, and so on.
  • Better syntax highlighting, classes, enums, root functions all have a custom color. Optionally recolor operators and change colors like you want it! Also highlights hex numbers correctly...
  • Folding of functions to get an overview of your code.
  • Auto-completion for the default and your functions, class names, and so on.
  • Call-tips for root functions with descriptions and parameter list.
  • Search-, filter- and sortable function list which also allows quick navigation between all the functions in a file.

Here's a visual impression:
Image
The only thing the built-in editor is slightly better in is the auto-complete for classes. However, my auto-completion does it's best in detecting your custom functions.

How to install it?
  1. If you don't have yet, install Notepad++, it's worth it.
  2. Right-click this link and save the downloaded file somewhere you remember.
  3. Start Notepad++, and from the "Language" menu, choose "Define your language...".
  4. In the appearing toolwindow, click on the "Import..." button and choose the file you just downloaded.
  5. Right-click this link and save the downloaded file into your Notepad++ installation directory under the folder "/plugins/APIs/eax.xml".
  6. Right-click this link and overwrite the Notepad++ "functionList.xml" file in the installation directory with the downloaded file.
    If you know that you have other custom functionList extensions configured, you need to merge the EAX "assocation" and "parser" nodes from the downloaded XML with your current functionList.xml.
  7. Restart Notepad++.
  8. Any time you want to highlight code pasted from the PX editor, select "EAX" from the "Languages" menu, and you got the new tools working, start typing! Alternatively, you can store your PX code into *.PXC or *.EAX files, then syntax highlighting will automatically jump in the next time you open these files.

There may still be bugs in the highlighter or some missing auto-complete entries. The documentation for the provided functions is basic. Maybe someone wants to provide better summaries. If you find any other bug, please reply to this thread, and I will update the tools.

Greetards,
DebugErr

Author:  rafa``2 [ Thu Mar 12, 2015 4:46 am ]
Post subject:  Re: Notepad++ support for EAX / PX scripts

awesome, i will try it out

Author:  Twicken [ Thu Mar 12, 2015 2:11 pm ]
Post subject:  Re: Notepad++ support for EAX / PX scripts

This is great! Thank you.

Author:  TheFiddler [ Fri Mar 13, 2015 12:11 am ]
Post subject:  Re: Notepad++ support for EAX / PX scripts

Interesting...

Author:  francot514 [ Thu Mar 19, 2015 12:37 am ]
Post subject:  Re: Notepad++ support for EAX / PX scripts

Im new here and want to ask you if you can give some example tutorial for project x, i used it time ago to play, but never designed for it and now im intersted in do some stuff like maps or libs, but need help for coding..

For example i have made a mission editor that uses the basic worms armageddon mission structure:
http://www.tus-wa.com/forums/files/worm ... ere-23710/

And want to know if do something similar using this is possible...

Author:  DebugErr [ Thu Mar 19, 2015 10:55 pm ]
Post subject:  Re: Notepad++ support for EAX / PX scripts

Woa could you please open your own topic for that instead of post it into random other threads?

Author:  francot514 [ Fri Mar 20, 2015 8:24 pm ]
Post subject:  Re: Notepad++ support for EAX / PX scripts

Hey, i think You miss understood the post, can you help me:

I said:
Quote:
Im new here and want to ask you if you can give some example tutorial for project x, i used it time ago to play, but never designed for it and now im intersted in do some stuff like maps or libs, but need help for coding..

Author:  Pac-Man [ Fri May 01, 2015 2:31 pm ]
Post subject:  Re: Notepad++ support for EAX / PX scripts

Fucking spammer

Author:  PyroMan [ Mon Aug 10, 2015 11:31 am ]
Post subject:  Re: Notepad++ support for EAX / PX scripts

That script in example tho <3

Great job with Notepad++ integration!

Author:  PyroMan [ Mon Aug 10, 2015 11:35 am ]
Post subject:  Re: Notepad++ support for EAX / PX scripts

p.s.
i`d suggest to post link for Notepad++ general download page which will redirect to latest version instead of linking to fixed version that most likely will be outdated ;)
https://notepad-plus-plus.org/download/
cheers

Page 1 of 2 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/