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!

Re: Syntax highlighting for Notepad++ and TextPad

Postby Nash » Tue Apr 12, 2016 1:32 pm

Missing from DECORATE:

Group 3: DistanceCheck
Group 4: CLIENTSIDEONLY

Suggestions for ACS:

Group 1: enum, struct (for gdcc-acc)
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: nVidia with Vulkan support

Re: Syntax highlighting for Notepad++ and TextPad

Postby Blue Shadow » Wed Apr 13, 2016 2:20 am

Nash wrote:Group 1: enum, struct (for gdcc-acc)

Hm, not quite sure if I want to add non-ACC keywords to this...

As for the rest, that will be for the next update.
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 Nash » Wed Apr 13, 2016 4:21 am

But... but... gdcc-acc is pretty much a drop-in acc.exe replacement... =D

Thanks for the other updates!
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: nVidia with Vulkan support

Re: Syntax highlighting for Notepad++ and TextPad

Postby NeuralStunner » Fri Apr 15, 2016 3:13 pm

Is there any way to import new keywords without overwriting personal modifications?

If nothing else, I may just have to import the updated styler as a new entry and copy/paste the lists. :?
User avatar
NeuralStunner
Cuddly but Packin'
 
 
 
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 Caligari87 » Fri Apr 15, 2016 3:45 pm

Could you do an A/B comparison or diff merge somehow? Not sure if that would work or not.

8-)
User avatar
Caligari87
I'm just here for the community
User Accounts Assistant
 
Joined: 26 Feb 2004
Location: Salt Lake City, Utah, USA
Discord: Caligari87#3089

Re: Syntax highlighting for Notepad++ and TextPad

Postby Blue Shadow » Sat Apr 16, 2016 6:56 am

I don't know if there is a way to do it more conveniently, apart from what Caligari87 suggested.

Though it's not convenient, the way I do it is to copy the keywords sections from the .xml file to:

Code: Select allExpand view
 ../AppData/Roaming/Notepad++/userDefineLang.xml

userDefineLang.xml is the file where user's imported language configurations are stored.

This saves on the "import" step. However, there is one caveat: you have to do the copying and pasting with another editor while Notepad++ is closed.
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 NeuralStunner » Sat Apr 16, 2016 10:39 pm

If only I could stand to edit XML in any other editor. :P

What I'll probably end up doing is adding the new keywords as I use/encounter them, heh.
User avatar
NeuralStunner
Cuddly but Packin'
 
 
 
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 Blue Shadow » Sun Apr 17, 2016 2:51 am

I'm thinking, would it be easier for you, and everybody else, if I put the configurations on GitHub?

The idea is that you clone the project from GitHub to your computer, do the changes you want to the cloned copy, and then each time the original project is updated, you do a merge. This way, the only thing you need to worry about is importing the configurations to the editor.
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 Nash » Sun Apr 17, 2016 3:31 am

Blue: I actually wanted to suggest the Github idea the other day but forgot. =D
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: nVidia with Vulkan support

Re: Syntax highlighting for Notepad++ and TextPad

Postby Nash » Wed May 11, 2016 1:30 am

Found a really cool feature in Notepad++!

1) Browse to %APPDATA%/notepad++
2) Open functionList.xml
3) In the AssociationMap section, add this to the bottom:

Code: Select allExpand view
<association userDefinedLangName="ACS (LT)" id="c_cpp_function"/>
<
association userDefinedLangName="ACS (DK)" id="c_cpp_function"/>


Save and close, and restart Notepad++. Go to View -> Function List. Enjoy a functional function list!

Image

The parser definition is kind of alien language to me right now so I don't really know how to specifically customize it for ACS (for example, letting it detect structs and enums and all that stuff for gdcc). And I imagine it would be madness to make parsing rules for DECORATE but, well, using the C/C++ parser for ACS is a start!

Oh and, in case it wasn't obvious: this only works if you're using BlueShadow's custom language definitions because we are associating his configs specifically in the AssociationMap
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: nVidia with Vulkan support

Re: Syntax highlighting for Notepad++ and TextPad

Postby Blue Shadow » Mon Aug 01, 2016 2:17 am

Heads up! the configuration files are now on GitHub. See the opening post for links.
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 Gutawer » Sun Oct 09, 2016 2:04 pm

Would it be possible to get this syntax highlighting on Atom? Recently moved over to Atom from Notepad++ and the only thing I'm missing is this syntax highlighting :/
User avatar
Gutawer
User Accounts Assistant
 
Joined: 16 Apr 2016
Discord: Gutawer#3431

Re: Syntax highlighting for Notepad++ and TextPad

Postby Blue Shadow » Sun Oct 09, 2016 5:56 pm

Sorry, I wouldn't know, since I don't use that editor.
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 Gutawer » Mon Oct 10, 2016 1:35 am

Mkay, that's fine. I'll have a look into translating it over myself.
User avatar
Gutawer
User Accounts Assistant
 
Joined: 16 Apr 2016
Discord: Gutawer#3431

Re: Syntax highlighting for Notepad++ and TextPad

Postby Blue Shadow » Fri Dec 02, 2016 8:47 am

Heads up! Support for ZSCRIPT has been added.
User avatar
Blue Shadow
 
 
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

PreviousNext

Return to Resources

Who is online

Users browsing this forum: Craneo, Shadez12, Xim and 1 guest