Love2D 0.8.0 + Lua 5.1 Syntax Highlighting for Notepad++

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
mk352
Prole
Posts: 5
Joined: Mon Jul 16, 2012 2:49 am

Love2D 0.8.0 + Lua 5.1 Syntax Highlighting for Notepad++

Post by mk352 »

:awesome: Hello Love2D community, I've been messing around with Love2D for a while now and due to sheer annoyance that Notepad ++ doesn't include support for love2D syntax highlighting (but allows XML language importing) I've decided to make my own highlighting "language" for Notepad++. Due to some conflicts while doing this there may still be some keywords that aren't properly highlighted. :monocle: However I'm currently looking into the matter and I've fixed a few bugs.

Change Log:
Version 1.0.0 XML Document - First Release
Version 1.1.0 XML Document:
  • Added support for LUBE Networking Library
  • Fixed some bugs concerning comments
  • Added more definitions (because some keywords weren't highlighted)
Download from Google Drive:
https://docs.google.com/open?id=0B2grNS ... TIxU1BlTUU
:nyu: This is the recommended download link!

Download from MediaFire:
http://www.mediafire.com/view/?wqm4fxb4hmc5bdz
;) you can never be sure that Google will never explode one of these days.
You can also use this link to view the source for the XML file.

How to install into Notepad ++:
  • Open Notepad++
  • Download the XML File from Google Drive
  • In Notepad++, go to View on the top toolbar, then go to "User-Defined Dialogue..." and check it!
  • Dock that toolbar if it cuts off on your screen, I can almost guarantee that will fix any visual problems.
  • Click on Import, select the XML File that you downloaded.
  • Restart your Notepad++ application!
  • All Done!
How to use in Notepad++:
  • If the imported language only appears in the User-Defined Dialogue window, then restart your application :|
  • In NP++ after installing the language, click Language, then it WONT be in the "L" section, but rather below all of the letters and default languages.
  • Click on "Love2D" above User-Defined Dialogue.
  • Highlighting complete!
BpZrV.png
BpZrV.png (61.15 KiB) Viewed 854 times
:awesome: Enjoy the latest XML file! I've noticed that there is only 80 views so far :shock:! :nyu: anyways, I'm still going to be updating this for anyone who needs this or wants this for whatever purpose.
Last edited by mk352 on Fri Jul 20, 2012 11:18 am, edited 1 time in total.
blenderer
Prole
Posts: 16
Joined: Fri Feb 12, 2010 1:19 am

Re: Love2D 0.8.0 + Lua 5.1 Syntax Highlighting for Notepad++

Post by blenderer »

Thank you for this, sir.

One internet for you!
blenderer
Prole
Posts: 16
Joined: Fri Feb 12, 2010 1:19 am

Re: Love2D 0.8.0 + Lua 5.1 Syntax Highlighting for Notepad++

Post by blenderer »

Is it intended to have single-line comments not colored?
mk352
Prole
Posts: 5
Joined: Mon Jul 16, 2012 2:49 am

Re: Love2D 0.8.0 + Lua 5.1 Syntax Highlighting for Notepad++

Post by mk352 »

:) Those bugs are fully fixed except for the comment block one, that one doesn't want to be fixed :brows: . I've made sure to fix a few bugs and I've added support for LUBE Networking Library! :monocle: Enjoy~!

LUBE Networking Library can be found here:
viewtopic.php?f=5&t=230
shipmaster4000
Prole
Posts: 1
Joined: Sat May 03, 2014 8:16 pm

Re: Love2D 0.8.0 + Lua 5.1 Syntax Highlighting for Notepad++

Post by shipmaster4000 »

I noticed when i name a variable diffrence, it acually hilights the "if" in the word diffrence
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 3 guests