Re: Syntax highlighting for Notepad++ and TextPad

Tue Apr 12, 2016 12:32 pm

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

Wed Apr 13, 2016 1: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.

Re: Syntax highlighting for Notepad++ and TextPad

Wed Apr 13, 2016 3:21 am

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

Fri Apr 15, 2016 2: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. :?

Re: Syntax highlighting for Notepad++ and TextPad

Fri Apr 15, 2016 2:45 pm

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

Sat Apr 16, 2016 5: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:
 ../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

Sat Apr 16, 2016 9: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.

Re: Syntax highlighting for Notepad++ and TextPad

Sun Apr 17, 2016 1: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.

Re: Syntax highlighting for Notepad++ and TextPad

Sun Apr 17, 2016 2:31 am

Blue: I actually wanted to suggest the Github idea the other day but forgot. =D

Re: Syntax highlighting for Notepad++ and TextPad

Wed May 11, 2016 12: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:
<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

Mon Aug 01, 2016 1:17 am

Heads up! the configuration files are now on GitHub. See the opening post for links.

Re: Syntax highlighting for Notepad++ and TextPad

Sun Oct 09, 2016 1: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 :/

Re: Syntax highlighting for Notepad++ and TextPad

Sun Oct 09, 2016 4:56 pm

Sorry, I wouldn't know, since I don't use that editor.

Re: Syntax highlighting for Notepad++ and TextPad

Mon Oct 10, 2016 12:35 am

Mkay, that's fine. I'll have a look into translating it over myself.

Re: Syntax highlighting for Notepad++ and TextPad

Fri Dec 02, 2016 7:47 am

Heads up! Support for ZSCRIPT has been added.