Page 2 of 4

Re: Syntax highlighting for Notepad++ and TextPad

PostPosted: Tue Apr 12, 2016 1:32 pm
by Nash
Missing from DECORATE:

Group 3: DistanceCheck
Group 4: CLIENTSIDEONLY

Suggestions for ACS:

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

Re: Syntax highlighting for Notepad++ and TextPad

PostPosted: Wed Apr 13, 2016 2:20 am
by Blue Shadow
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.

Re: Syntax highlighting for Notepad++ and TextPad

PostPosted: Wed Apr 13, 2016 4:21 am
by Nash
But... but... gdcc-acc is pretty much a drop-in acc.exe replacement... =D

Thanks for the other updates!

Re: Syntax highlighting for Notepad++ and TextPad

PostPosted: Fri Apr 15, 2016 3:13 pm
by NeuralStunner
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. :?

Re: Syntax highlighting for Notepad++ and TextPad

PostPosted: Fri Apr 15, 2016 3:45 pm
by Caligari87
Could you do an A/B comparison or diff merge somehow? Not sure if that would work or not.

8-)

Re: Syntax highlighting for Notepad++ and TextPad

PostPosted: Sat Apr 16, 2016 6:56 am
by Blue Shadow
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.

Re: Syntax highlighting for Notepad++ and TextPad

PostPosted: Sat Apr 16, 2016 10:39 pm
by NeuralStunner
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.

Re: Syntax highlighting for Notepad++ and TextPad

PostPosted: Sun Apr 17, 2016 2:51 am
by Blue Shadow
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.

Re: Syntax highlighting for Notepad++ and TextPad

PostPosted: Sun Apr 17, 2016 3:31 am
by Nash
Blue: I actually wanted to suggest the Github idea the other day but forgot. =D

Re: Syntax highlighting for Notepad++ and TextPad

PostPosted: Wed May 11, 2016 1:30 am
by Nash
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

Re: Syntax highlighting for Notepad++ and TextPad

PostPosted: Mon Aug 01, 2016 2:17 am
by Blue Shadow
Heads up! the configuration files are now on GitHub. See the opening post for links.

Re: Syntax highlighting for Notepad++ and TextPad

PostPosted: Sun Oct 09, 2016 2:04 pm
by Gutawer
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 :/

Re: Syntax highlighting for Notepad++ and TextPad

PostPosted: Sun Oct 09, 2016 5:56 pm
by Blue Shadow
Sorry, I wouldn't know, since I don't use that editor.

Re: Syntax highlighting for Notepad++ and TextPad

PostPosted: Mon Oct 10, 2016 1:35 am
by Gutawer
Mkay, that's fine. I'll have a look into translating it over myself.

Re: Syntax highlighting for Notepad++ and TextPad

PostPosted: Fri Dec 02, 2016 8:47 am
by Blue Shadow
Heads up! Support for ZSCRIPT has been added.