Page 1 of 1

Autocode highlighting for Notepad++

Posted: 26 Oct 2015, 4:42
by hacheipe399
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:

Posted: 26 Oct 2015, 14:53
by h2643
Seems useful, sticking ;-)

Posted: 20 Dec 2015, 15:26
by P3rf3ctXZer0
Is this still valid with LunaLua?

Posted: 20 Dec 2015, 15:40
by Wohlstand
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.

Posted: 20 Dec 2015, 23:31
by P3rf3ctXZer0
Oh alright sounds good thank you for the information!