Syntax highlighting for Notepad++ and TextPad

Sprites, textures, sounds, code, and other resources belong here. Share and share-alike!
Forum rules
Before posting your Resource, please make sure you can answer YES to any of the following questions:
  • Is the resource ENTIRELY my own work?
  • If no to the previous one, do I have permission from the original author?
  • If no to the previous one, did I put a reasonable amount of work into the resource myself, such that the changes are noticeably different from the source that I could take credit for them?
If you answered no to all three, maybe you should consider taking your stuff somewhere other than the Resources forum.

Consult the Resource/Request Posting Guidelines for more information.

Please don't put requests here! They have their own forum --> here. Thank you!

Syntax highlighting for Notepad++ and TextPad

Postby Blue Shadow » Fri Sep 12, 2014 2:16 pm

This is a syntax highlight thingy for ACS, DECORATE and ZSCRIPT to be used with Notepad++ or TextPad.

Spoiler: Preview

Git repository
Download configurations

Here is how to use:

(the following instructions concern Notepad++. For instructions on how to use it with TextPad, see here.)

  • Download the linked file and extract the .xml files contained within somewhere on your machine.

    (The files with the "dk" suffix are for a dark theme/style, and the ones with "lt" are for a light one. So go with what suits you.)

  • Start Notepad++ up and from the menu toolbar: Language --> Define your language...
  • In the User Defined Language window, click on Import and navigate to where you extracted the .xml files. Choose a file to import.
And that's it! If your file has the .acs, .decorate/.dec or .zsc/.zc/.zs extensions, the syntax will be applied automatically on the file when it's opened. You can, of course, force the syntax on a file by choosing the language from the Language menu (it should be at the very bottom of the list).

Note: if after import you don't see the language in the Language menu, then just do a restart of the program.


Credits:

  • gamefreakdude and Nash for the DECORATE one, which I used as a guide.
  • sirjuddington and Gez for SLADE3's own syntax highlight configurations and the highlight colors used (for the light theme).
Last edited by Blue Shadow on Fri Apr 14, 2017 5:03 am, edited 27 times in total.
User avatar
Blue Shadow
 
 
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: ACS syntax highlighting for Notepad++

Postby everamzah » Fri Sep 12, 2014 2:47 pm

Thanks very much. It works great.
User avatar
everamzah
gl_texture_filter 0
 
Joined: 20 Aug 2013
Location: Augusta, ME.

Re: ACS syntax highlighting for Notepad++

Postby Nash » Fri Sep 12, 2014 2:56 pm

Haha wow, totally forgot that I had a hand in the original definition... my brain is failing! XD Thanks for this BlueShadow!
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

Re: ACS syntax highlighting for Notepad++

Postby Blue Shadow » Sat Sep 13, 2014 9:35 am

You're welcome!
User avatar
Blue Shadow
 
 
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: ACS syntax highlighting for Notepad++

Postby kodi » Sat Sep 13, 2014 11:02 am

Thanks a ton dude, this is amazing. Especially after I changed the colours to suit my black background 8-)
User avatar
kodi
Proscrastinator
 
 
 
Joined: 06 May 2013

Re: ACS syntax highlighting for Notepad++

Postby Enjay » Sat Sep 13, 2014 12:33 pm

I don't suppose anyone fancies converting this to a Textpad SYN file do they?

I currently use the C highlighting and it works pretty well to be honest but an ACS specific setup would be nice if anyone fancied doing it.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: ACS syntax highlighting for Notepad++

Postby Apothem » Sat Sep 13, 2014 4:09 pm

Oooooh! Handy! My old text editor software has changed a lot and the stuff I have is out of date. This is perfect for my needs! Thanks! :D
User avatar
Apothem
ACS scripting makes my head go BooM!
 
Joined: 29 Nov 2003
Location: Performing open heart surgery on an ACS compiler.

Re: ACS syntax highlighting for Notepad++

Postby Blue Shadow » Sat Sep 13, 2014 5:59 pm

Enjay wrote:I don't suppose anyone fancies converting this to a Textpad SYN file do they?

Here you go.

I suppose you already know how import/use the configuration?

Edit: I almost forgot, for the coloring part: Keywords 2 is for functions, Keywords 3 is for constants, and Keywords 1 is for pretty much any other keywords.
User avatar
Blue Shadow
 
 
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: ACS syntax highlighting for Notepad++

Postby Enjay » Sat Sep 13, 2014 6:43 pm

Blue Shadow wrote:I suppose you already know how import/use the configuration?

Yes I do, and it works like a charm. Thank you. :)
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: Syntax highlighting for Notepad++ and TextPad

Postby Blue Shadow » Sat Jan 31, 2015 12:58 pm

Added one for DECORATE. Also, in addition to the standard, light theme, a dark one is available.
User avatar
Blue Shadow
 
 
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Syntax highlighting for Notepad++ and TextPad

Postby Kappes Buur » Mon Feb 02, 2015 1:40 pm

I used to select C for the scripts, but this is so much nicer.
Thanks.
User avatar
Kappes Buur
 
 
 
Joined: 17 Jul 2003
Location: British Columbia Canada

Re: Syntax highlighting for Notepad++ and TextPad

Postby NeuralStunner » Mon Feb 02, 2015 4:20 pm

Kappes Buur wrote:I used to select C for the scripts, but this is so much nicer.
Same here.

Unfortunately I can't think of a nicer way to force Decorate styling for arbitrary filenames. I have literally hundreds of actor files across several projects, and changing the extensions on those would be a pain in the arse.

I don't suppose anyone knows of a way to force language detection from an opening comment? Perhaps needing a plugin?
User avatar
NeuralStunner
An Exercise in Self-Indulgence
 
 
 
Joined: 21 Jul 2009
Location: Indiana, USA
Discord: NeuralStunner#1293
Operating System: Windows Vista/7 64-bit

Re: Syntax highlighting for Notepad++ and TextPad

Postby Kappes Buur » Mon Feb 02, 2015 5:33 pm

NeuralStunner wrote:.... I have literally hundreds of actor files across several projects, and changing the extensions on those would be a pain in the arse. ....

I find this one extremely helpful
http://www.leftandwrite.com/filenamemanager/
User avatar
Kappes Buur
 
 
 
Joined: 17 Jul 2003
Location: British Columbia Canada

Re: Syntax highlighting for Notepad++ and TextPad

Postby Gez » Tue Feb 03, 2015 5:57 am

ren *.txt *.dec
Gez
 
 
 
Joined: 06 Jul 2007

Re: Syntax highlighting for Notepad++ and TextPad

Postby NeuralStunner » Tue Feb 03, 2015 1:31 pm

It's not that I don't know how to do it. I think Notepad++ is a great editor and there should be a way to make its features extension-agnostic.

Also I sometimes reach Gez levels of laziness. :P
User avatar
NeuralStunner
An Exercise in Self-Indulgence
 
 
 
Joined: 21 Jul 2009
Location: Indiana, USA
Discord: NeuralStunner#1293
Operating System: Windows Vista/7 64-bit

Next

Return to Resources

Who is online

Users browsing this forum: DrPyspy and 0 guests