Page 1 of 2

Some Help with Notepad++

Posted: Wed Mar 05, 2014 3:08 am
by davisdude
So I'm making a custom theme using Notepad++ for LÖVE, and I've run in to some difficulty.
Here's what I've done so far:
Made LOVE.xml, which is basically a copy of my favorite theme (Obsidian), but everything is removed except the .lua information and and the GlobalStyles.

I've also added the LÖVE functions with the "keywordClass" of "lovemodules", "lovecallbacks", and "lovefunctions". I made each of them have a special color (pink, just for LÖVE!), with the same information as everything else, except the styleID, which I wasn't sure about, so I just left that as the next ones (16, 17, 18), as well as the keywordClass. I've put this file in the themes folder.

I've made a langs.models.xml file as well. It's the exact same, but with the new Keywords. All 3 hold all of the pertinent information, with the first containing the module names as well as "love" itself. The second contains the basic functions (draw, update, etc). The third contains all of the actual functions (e.g. love.graphics.draw, it would be "draw"). This has been added to the langs.models.xml file.

I changed the stylers.models.xml so that it matches exactly the lua part of the LOVE.xml file.

Everything works, all the Lua features, at least. The custom added ones don't work, however. This is my problem.

I appreciate any help, even if it's a recommendation to switch to another text editor! :)
But seriously, I would like to keep using Notepad++

Re: Some Help with Notepad++

Posted: Wed Mar 05, 2014 10:00 pm
by Ranguna259
How did you add the costume ones ?

Re: Some Help with Notepad++

Posted: Wed Mar 05, 2014 10:12 pm
by davisdude
I added the LOVE.xml to the themes folder. Then I just added the extra information to the files specified.

Re: Some Help with Notepad++

Posted: Wed Mar 05, 2014 10:20 pm
by Ranguna259
But did you write your stuff direcly to the XML or did you use notepad++ to add the costum ones ?

EDIT: 404 posts not found (your number of posts :crazy: )

Re: Some Help with Notepad++

Posted: Wed Mar 05, 2014 10:23 pm
by davisdude
404 comment not found. :P About to change.
I used wrote them directly (using a preexisting one as a template). I would have done it the easier way, but the them change never saved for me.
I also have some new information: When calling a function, if numbers are input as arguments, the text is the color of one of the custom ones... :?

Re: Some Help with Notepad++

Posted: Wed Mar 05, 2014 10:33 pm
by Ranguna259
Hmmm.. You are using this window right ?
Capturar.PNG
Capturar.PNG (138.72 KiB) Viewed 2554 times

Re: Some Help with Notepad++

Posted: Wed Mar 05, 2014 10:36 pm
by davisdude
I wanted to make it a theme, not a language. I don't really know why, just wanted to.
All of the currently existing NP++ plugins I have tried are really ugly, though.
EDIT: If you don't mind, where did you get that one?

Re: Some Help with Notepad++

Posted: Wed Mar 05, 2014 10:55 pm
by Ranguna259
It's one that comes with NP++, "Deep Black".
Why not just make a language ?

Re: Some Help with Notepad++

Posted: Wed Mar 05, 2014 10:59 pm
by davisdude
No, I meant the language download. For some reason, I hadn't even thought about making a new language.

Re: Some Help with Notepad++

Posted: Thu Mar 06, 2014 8:53 pm
by Ranguna259
It's a costum one, here it is (it might be outdated and it might have some of my own functions too): https://mega.co.nz/#!t5ZgnKCA!L9-RBjptx ... pRMP-yZMPc