Autocode highlighting for Notepad++

Description: Archive discussion
============================
Original 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.

hacheipe399 M
Topic author, Honourable citizen
Honourable citizen
Avatar
hacheipe399 M
Topic author, Honourable citizen
Honourable citizen
Age: 25
Reputation: 14
Posts: 45
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.
I listen to energic music:
All kinds of metal.
Electronic music: Hard House, Hardstyle, Hardcore, Frenchcore, Terrorcore and anything that with ends in -core.
Best track of 2018: Cryogenic - Mot3rf$ck3r (wear earprotection when listenting to this).

I hope to be a major contributor of PGE when I'm more advanced in my engineering.

h2643 M
Forum admin
Forum admin
Avatar
h2643 M
Forum admin
Forum admin
Age: 23
Reputation: 112
Posts: 330
Joined: 15 Feb 2014
Location: Ukraine
YouTube

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: 33
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: 31
Reputation: 507
Posts: 1825
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ

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.
Image

P3rf3ctXZer0
Good citizen
Good citizen
Avatar
P3rf3ctXZer0
Good citizen
Good citizen
Reputation: -2
Posts: 33
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: 3 guests