Some Help with Notepad++

General discussion about LÖVE, Lua, game development, puns, and unicorns.
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Some Help with Notepad++

Post 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++
Attachments
stylers.model.xml
stylers.model.xml
(96.58 KiB) Downloaded 79 times
langs.model.xml
langs.model.xml
(113.85 KiB) Downloaded 79 times
LOVE.xml
LOVE.xml
(5.5 KiB) Downloaded 82 times
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: Some Help with Notepad++

Post by Ranguna259 »

How did you add the costume ones ?
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: Some Help with Notepad++

Post by davisdude »

I added the LOVE.xml to the themes folder. Then I just added the extra information to the files specified.
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: Some Help with Notepad++

Post 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: )
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: Some Help with Notepad++

Post 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... :?
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: Some Help with Notepad++

Post by Ranguna259 »

Hmmm.. You are using this window right ?
Capturar.PNG
Capturar.PNG (138.72 KiB) Viewed 2551 times
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: Some Help with Notepad++

Post 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?
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: Some Help with Notepad++

Post by Ranguna259 »

It's one that comes with NP++, "Deep Black".
Why not just make a language ?
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: Some Help with Notepad++

Post by davisdude »

No, I meant the language download. For some reason, I hadn't even thought about making a new language.
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: Some Help with Notepad++

Post 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
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests