Autocode highlighting for Notepad++

Description: Official subforum for LunaLua - an extension framework for SMBX Engine Version 1.3 (which a core of SMBX 2.0). Share your creations that require the use of LunaLUA. You may also share info/tutorials on how to use LunaLUA.
Moderator: Moderators

hacheipe399
Topic author, Honourable citizen
Honourable citizen
hacheipe399
Topic author, Honourable citizen
Honourable citizen
Reputation: 10
Posts: 38
Joined: 24 Feb 2014

Post #1by hacheipe399 » 26 Oct 2015, 4:42

Hello everybody! I've made a custom language highlighting for Notepad++. This is useful if you work with LunaDLL within this editor.
It has:
  • Decimal and hexadecimal number colour.
  • The command names have colour. (ALL the commands!)
  • The keyword "once" is highlighted.
  • Comment highlight.
  • Time designators (#SECTION and #END) are highlighted.
  • The reference variables ($VARIABLE) are also highlighted.

Download this and then import it to your Notepad++.

If you want to make it by yourself setting your own colours and styles, follow the next instructions:
  • Go to "Define your Language" option. Go to the tab "Operators and Delimiters".
  • In Operators 1 add only a comma (,).
  • Within "Numbers and comments", go to comment line style and Open with double bars (//).
  • Within Number Style, add 0x as Prefix 2, and A B C D E F a b c d e f as Extras 1. That's for hexadecimal numbers.
  • Go to Keywords Lists. In the first group, add a number sign (#) and select "Prefix Mode". That's for the time designators.
  • In the next group, do the same of previous step, but this time with the dollar sign ($). That's for the reference variables.
  • In the next group, write each one of the command names. Do this only if you want a custom colour for the names.

Edit: Here is How it looks:
Image

That's all! :rofl:
Last edited by hacheipe399 on 26 Oct 2015, 20:55, edited 1 time in total.

h2643 M
Contributor
Contributor
h2643 M
Contributor
Contributor
Reputation: 82
Posts: 327
Joined: 15 Feb 2014
Location: Ukraine
Skype YouTube VK

Post #2by h2643 » 26 Oct 2015, 14:53

Seems useful, sticking ;-)
<Knux> h2643 the super computer

P3rf3ctXZer0
Good citizen
Good citizen
Avatar
P3rf3ctXZer0
Good citizen
Good citizen
Reputation: 2
Posts: 30
Joined: 1 Jul 2015

Post #3by P3rf3ctXZer0 » 20 Dec 2015, 15:26

Is this still valid with LunaLua?

Wohlstand M
Lead Developer
Lead Developer
Avatar
Wohlstand M
Lead Developer
Lead Developer
Age: 25
Reputation: 317
Posts: 1292
Joined: 15 Feb 2014
Location: Moscow, Russia
Website Skype YouTube

Post #4by Wohlstand » 20 Dec 2015, 15:40

P3rf3ctXZer0 wrote:Is this still valid with LunaLua?
LunaLUA still supports this legacy autocode, but LunaLUA's main language is LUA. Notepad++ already supports highlighting for LUA, because it's a widely-used programming language.

P3rf3ctXZer0
Good citizen
Good citizen
Avatar
P3rf3ctXZer0
Good citizen
Good citizen
Reputation: 2
Posts: 30
Joined: 1 Jul 2015

Post #5by P3rf3ctXZer0 » 20 Dec 2015, 23:31

Oh alright sounds good thank you for the information!


Return to “LunaLua - Extension Framework”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest