Page 1 of 1

Notepad++: CubeScript (RE) User Lang

PostPosted: 26 Oct 2011, 16:56
by ZeroKnight
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)

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

PostPosted: 26 Oct 2011, 17:56
by qreeves
Nice! I use Notepad++ myself, so maybe this will actually make me enjoy CubeScript a little more :)

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

PostPosted: 26 Oct 2011, 18:28
by ZeroKnight
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 :)

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

PostPosted: 26 Oct 2011, 18:41
by ZeroKnight
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.

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

PostPosted: 27 Oct 2011, 05:11
by srbs
ZeroKnight {l Wrote}:Oh dear, I just realized I forgot guislider...silly me.

What is with you and guislider? :P

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

PostPosted: 27 Oct 2011, 12:50
by qreeves
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

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

PostPosted: 27 Oct 2011, 17:10
by ZeroKnight
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

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

PostPosted: 09 Nov 2011, 03:23
by ZeroKnight
Bump. Realized I forgot several keywords, and misspelled a few. Everything is good now.