Notepad++: CubeScript (RE) User Lang

Notepad++: CubeScript (RE) User Lang

Postby ZeroKnight » 26 Oct 2011, 16:56

Hey everyone! In playing around with CubeScript in the recent months, and using Notepad++ to do it, I decided last night to take a stab at making a User Lang for CubeScript (mixed with RE commands). There's a GUI within N++ that lets you do this easily, so it was just a matter of going through the couple 600 or so commands and organizing them and coloring ;P Took me about 3 hours. Anyway, if you couldn't guess what a User Lang was, it's a user-defined language to use in N++ for syntax highlighting :)

Here's the file: http://www.mediafire.com/?66pi7os23mf0q4c

** IMPORTANT ** - Due to my personal preferences, I made the coloring in relation to the "Deep Black" style. If you use another one, it will not look right. However, read on to find out how to very easily and very quickly change the background colors from black to whatever you wish.

Instructions

  1. In Notepad++, select: View>User Defined Dialogue... (or press the button in the toolbar. It's to the left of Record Macro)
  2. Click Import and select the file you downloaded
  3. You're done unless you want to change the colors ;P In which case, read on.
  4. Below the Import button are 4 tabs, each with color choosers. "Background Color" is what you want to change to suit your skin needs. Or even other colors, for that matter, as well as whether or not to bold or underline things, change font size, etc. ;)

The default coloring is as follows:
Orange = CubeScript Logic, CubeScript commands, "get" commands, state/value checking, etc. Console related things
Purple = Game specific actions, vars, commands, etc. GUI options. Anything game related that's NOT editing.
Green = Editing, Mapping, Texturing and Design related vars
Red = Arithmetic/Logic related, operators

Hope you guys like it! I was dying for some syntax highlighting :) One last note, the "^" escape character DOES work in strings. If you use ' ^" ' the string will stay highlighted as it should :) (If you happened to use C++ for highlighting, you'd notice the string didn't recognize it as an escape char, and the highlighting would stop. Made things hard to see)
Last edited by ZeroKnight on 11 Nov 2011, 19:57, edited 4 times in total.
[ Github ][ WazuClan -- irc.wazuclan.com #wazuclan ][ Zero's Archive of RE Extensions, Scripts, WeapMods & More! ]
User avatar
ZeroKnight
 
Posts: 524
Joined: 08 Jun 2011, 01:24
Location: Ohio, United States

Re: Notepad++: CubeScript (RE) User Lang

Postby qreeves » 26 Oct 2011, 17:56

Nice! I use Notepad++ myself, so maybe this will actually make me enjoy CubeScript a little more :)
Quinton "quin" Reeves | Lead Developer, Red Eclipse | http://redeclipse.net/ | http://www.facebook.com/redeclipse.net
User avatar
qreeves
 
Posts: 1294
Joined: 17 Mar 2011, 03:46
Location: Queensland, Australia

Re: Notepad++: CubeScript (RE) User Lang

Postby ZeroKnight » 26 Oct 2011, 18:28

Always glad to contribute something enjoyable and useful ^_^
If anything bugs you, the editor interface is extremely simple to use, so don't feel restricted :)
[ Github ][ WazuClan -- irc.wazuclan.com #wazuclan ][ Zero's Archive of RE Extensions, Scripts, WeapMods & More! ]
User avatar
ZeroKnight
 
Posts: 524
Joined: 08 Jun 2011, 01:24
Location: Ohio, United States

Re: Notepad++: CubeScript (RE) User Lang

Postby ZeroKnight » 26 Oct 2011, 18:41

Oh dear, I just realized I forgot guislider...silly me.
Go back into the User-Defined Dialogue, and under the "Keywords" tab, 2nd Group, add "guislider". Sorry about that! Reuploading the file as well.
[ Github ][ WazuClan -- irc.wazuclan.com #wazuclan ][ Zero's Archive of RE Extensions, Scripts, WeapMods & More! ]
User avatar
ZeroKnight
 
Posts: 524
Joined: 08 Jun 2011, 01:24
Location: Ohio, United States

Re: Notepad++: CubeScript (RE) User Lang

Postby srbs » 27 Oct 2011, 05:11

ZeroKnight {l Wrote}:Oh dear, I just realized I forgot guislider...silly me.

What is with you and guislider? :P
srbs
 
Posts: 94
Joined: 17 Mar 2011, 07:00

Re: Notepad++: CubeScript (RE) User Lang

Postby qreeves » 27 Oct 2011, 12:50

srbs {l Wrote}:
ZeroKnight {l Wrote}:Oh dear, I just realized I forgot guislider...silly me.

What is with you and guislider? :P

PMSL. I was thinking the same thing :D
Quinton "quin" Reeves | Lead Developer, Red Eclipse | http://redeclipse.net/ | http://www.facebook.com/redeclipse.net
User avatar
qreeves
 
Posts: 1294
Joined: 17 Mar 2011, 03:46
Location: Queensland, Australia

Re: Notepad++: CubeScript (RE) User Lang

Postby ZeroKnight » 27 Oct 2011, 17:10

Freudian Slip? (quite literally a slip, haha) LOL, it's haunting me I tell you! It doesn't seem to like me very much. How amusing :P
[ Github ][ WazuClan -- irc.wazuclan.com #wazuclan ][ Zero's Archive of RE Extensions, Scripts, WeapMods & More! ]
User avatar
ZeroKnight
 
Posts: 524
Joined: 08 Jun 2011, 01:24
Location: Ohio, United States

Re: Notepad++: CubeScript (RE) User Lang

Postby ZeroKnight » 09 Nov 2011, 03:23

Bump. Realized I forgot several keywords, and misspelled a few. Everything is good now.
[ Github ][ WazuClan -- irc.wazuclan.com #wazuclan ][ Zero's Archive of RE Extensions, Scripts, WeapMods & More! ]
User avatar
ZeroKnight
 
Posts: 524
Joined: 08 Jun 2011, 01:24
Location: Ohio, United States

Who is online

Users browsing this forum: No registered users and 0 guests