• Announcements

    • Ashal

      SITE MOVED - IN READ ONLY MODE   12/08/2015

      Please use http://www.loverslab.com moving forward. Site has been restored to a previous version, and this one placed into a read-only mode. This is available for a limited time so users may reference/copy content that has been lost in the transition. This will no longer be accessible by December 22nd, 2015.

DoctaSax

Moderators
  • Content count

    3,669
  • Joined

  • Last visited

4 Followers

About DoctaSax

  • Rank
    big blowhard

Contact Methods

  • AIM nah
  • MSN nah
  • ICQ nah
  • Yahoo nah
  • Jabber nah
  • Skype nah
  • Location in my own head
  • Bio the usual

Profile Information

  • Gender Not Telling

6 files

  1. NVGeck Syntax Highlighter for NP++

    Why?
     
    Just a small little thing, but I mashed this together when I finally relented in giving up on using reinhart_menken's old syntax highlighter for NP++, which was made for FO3 so only recognizes fose. It seems some change to NP++ along the way made that one start failing to collapse complex if-endif nestings, so that's a shame.
     
    Gribbleshnibit's is a far more up-to-date syntax highlighter, has all the NVSE4 functions etc., but I liked my old style settings, the colors and fonts, so I combined some stuff, and ended up changing a few other things too.
     
    Updated to include added functions up to NVSE version 4.5.7
     
    Oh, and what makes yours so special?
     
    Eh, nothing. I just like it. Apart from making sure things jumped out at me more like they did with reinhart's, I also changed the following from Gribble's:
     
    - Let, set to, return, label, goto, break, continue and the like aren't highlighted in the same way as functions, but get their own style. I like to think of them as commands, a separate thing from functions.
    - To make room for the extra style, I axed the highlighting of vanilla forms.
    - All script functions are styled the same, whether they come from vanilla, nvse (whichever version) or nvse plugins like nx, pn, and mcm. The relevant function keywords are still kept in separate lists according to Gribble's distinction, they just have the same style. So if anybody'd like NVSE4+ functions to look differently again, just adjust the style.
    - Foreach-loop and While-loop are treated as code blocks that you can fold and unfold like if-endif, Begin-End
    - Added elseif and else as 'middle' chunks of such blocks that you can fold and unfold separately
    - Script-local var declarations (including array_var and string_var) have the same style as globals
    - Added array/map/stringmap to the styling for non-formatted strings (like health in getav health)
    - Uniform styling for blocktypes, begin-end, if-elseif-else-endif
     
    How To Install:
    - open notepad++
    - Pick "language" in the menu, then "define your language"
    - "import", then find the xml uploaded here, and... import it
    - done
     
    This highlighter will attach itself to the .geck file extension. You can change that if you want, same as anything else. In Notepad++, the syntax is called "DSGeckSyntax1" because I'm so vain I think this song is about me. No, actually, that's because all these syntaxes are called something similar and if you've gone over a few to figure out what you like, you can't remember which is which.
     
    It's made with Notepad 6.5.5, which uses UDL 2.1. If you've got an older UDL version, you probably want to upgrade.
     
    Permissions
     
    I don't feel like I "own" this. Adjusting font colors and styles and whatever other choices I made were hardly earthshattering innovations.
    I did check with gribbleshnibit to see if he was ok with my copy-pasting his updated keywords lists. That's just respecting the work in getting them in there so that I could take a shortcut.

    54 downloads

    Updated