Project X Forums



It is currently Mon Sep 20, 2021 8:35 pm

All times are UTC




Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Notepad++ support for EAX / PX scripts
PostPosted: Sat Mar 07, 2015 9:10 pm 
Offline

Joined: Mon Aug 18, 2014 6:49 pm
Posts: 15
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


Last edited by DebugErr on Sun Feb 14, 2016 10:59 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ support for EAX / PX scripts
PostPosted: Thu Mar 12, 2015 4:46 am 
Offline

Joined: Sat Aug 09, 2014 1:30 am
Posts: 40
awesome, i will try it out


Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ support for EAX / PX scripts
PostPosted: Thu Mar 12, 2015 2:11 pm 
Offline
User avatar

Joined: Tue Oct 04, 2011 2:44 pm
Posts: 294
This is great! Thank you.

_________________
“If you can't explain it simply, you don't understand it well enough” - Albert Einstein.


Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ support for EAX / PX scripts
PostPosted: Fri Mar 13, 2015 12:11 am 
Offline

Joined: Sat Feb 07, 2015 8:46 pm
Posts: 26
Interesting...


Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ support for EAX / PX scripts
PostPosted: Thu Mar 19, 2015 12:37 am 
Offline

Joined: Thu Mar 19, 2015 12:34 am
Posts: 11
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...


Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ support for EAX / PX scripts
PostPosted: Thu Mar 19, 2015 10:55 pm 
Offline

Joined: Mon Aug 18, 2014 6:49 pm
Posts: 15
Woa could you please open your own topic for that instead of post it into random other threads?


Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ support for EAX / PX scripts
PostPosted: Fri Mar 20, 2015 8:24 pm 
Offline

Joined: Thu Mar 19, 2015 12:34 am
Posts: 11
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..


Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ support for EAX / PX scripts
PostPosted: Fri May 01, 2015 2:31 pm 
Offline
User avatar

Joined: Mon Jun 21, 2010 2:10 pm
Posts: 43
Fucking spammer


Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ support for EAX / PX scripts
PostPosted: Mon Aug 10, 2015 11:31 am 
Offline
User avatar

Joined: Sun Apr 08, 2012 1:09 pm
Posts: 425
Location: Ukraine, Kyiv
That script in example tho <3

Great job with Notepad++ integration!

_________________
Things to impress.


Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ support for EAX / PX scripts
PostPosted: Mon Aug 10, 2015 11:35 am 
Offline
User avatar

Joined: Sun Apr 08, 2012 1:09 pm
Posts: 425
Location: Ukraine, Kyiv
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

_________________
Things to impress.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Skin by Lucas Kane