Page 1 of 1

DECORATE language configuration for Notepad++

Posted: Sun Nov 04, 2012 3:06 pm
by GFD
Threw this together quickly to help me edit a bit more efficiently. Maybe someone here will find it useful too.
You can import this via View > User-Defined Dialogue > Import, and also edit this configuration within that window.

Re: DECORATE language configuration for Notepad++

Posted: Mon Nov 05, 2012 9:12 am
by Nash
Very, very useful! Thank you for this.

Re: DECORATE language configuration for Notepad++

Posted: Tue Nov 06, 2012 10:04 am
by Zombieguy
Oh yes, thanks you!

Re: DECORATE language configuration for Notepad++

Posted: Tue Nov 06, 2012 11:34 am
by SFJake
So, you import it, then what?

It doesn't do anything at that point. How do you use it?

Re: DECORATE language configuration for Notepad++

Posted: Tue Nov 06, 2012 11:41 am
by GFD
Set the language of the document you're editing to DECORATE in the language menu. It will also automatically use the DECORATE language for any files with the .decorate extension.

Re: DECORATE language configuration for Notepad++

Posted: Tue Nov 06, 2012 12:37 pm
by SFJake
Oh, thanks, that works.

Re: DECORATE language configuration for Notepad++

Posted: Sat Dec 08, 2012 4:27 pm
by Nash
Hi, I have a small problem.

Image

In this image, you can see that the colouring for the open and closed curly brackets are kind of inconsistent... is this fixable?

Re: DECORATE language configuration for Notepad++

Posted: Sat Dec 08, 2012 4:30 pm
by GFD
Don't think so - at least, I couldn't find a solution. Notepad++ doesn't give that much flexibility for user-created language configurations.

Edit: Well, you could replace the ACTOR folder open keyword in the configuration with {, but then you have to make sure you don't have anything that's not whitespace on either side of that brace. I just found it's easier for me to use ACTOR as the keyword instead; I typically don't put that brace on a newline. View > User-defined dialogue will let you edit user-installed language configurations.

Re: DECORATE language configuration for Notepad++

Posted: Sat Dec 08, 2012 5:05 pm
by Nash
Alright, I got it figured out somewhat, if anyone who has a similar coding style to mine wants a fixed version here it is.

What's changed:

- Fixed folder detection - if your coding style is similar to my screenshot (or the following in case the image expires), folders should be properly detected.
Spoiler:
- Added ( and ) to the operators, so that if you don't add spaces next to your functions, it would highlight the keyword properly

Example: If you code like so - A_SpawnItemEx( instead of A_SpawnItemEX ( - the keywords will now be highlighted properly.

- Fixed some typos in the last section of keywords in the original file (there were a bunch of functions that were mashed together without spaces separating them, also there was one non-existant function: A_BarrelDestroye)

- Added more keywords: everything from here.

- Added some more missing keywords, basically everything inside zdoom.pk3's actors/actor.txt is now covered.

- Added some highlighting for some types used in actors/constants.txt

Re: DECORATE language configuration for Notepad++

Posted: Fri Apr 26, 2013 8:13 pm
by Nash
Here's my latest language definition for the latest version of Notepad++ released this month (6.3.2). I've added more missing keywords, and also folder highlighting now finally works properly (the issues I demonstrated in my images in the posts above are gone).

Requires Notepad++ 6.3.2.

Note that with 6.3.2, they've changed the menus a bit, so to import this .XML file, you now have to go to Language -> Define your language then click the Import button.

Re: DECORATE language configuration for Notepad++

Posted: Fri Apr 26, 2013 8:16 pm
by GFD
You've done a wonderful job fixing up my 5 minute config! Thank you very a lot much