Halomods Community Portal: Interest in a Script Editor? - Halomods Community Portal

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

H1_CE
Interest in a Script Editor?

Poll: Interest in a Script Editor? (5 member(s) have cast votes)

Interested?

  1. I script, and this looks useful! (4 votes [80.00%])

    Percentage of vote: 80.00%

  2. I don't script, but this is cool! Do it! (1 votes [20.00%])

    Percentage of vote: 20.00%

  3. Meh, I have no use for this. (Don't script / already have a comfortable setup) (0 votes [0.00%])

    Percentage of vote: 0.00%

Vote Guests cannot vote

#1 User is offline   WaeV 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Joined: 06-May 11
  • LocationCosmos

Posted 18 May 2011 - 01:15 AM

I'm probably about to be distracted by moving away from school for summer, and this may never be finished, but what do you think of a custom build of the Scite editor, with a built in Halo-script-lexer?

Here are some pictures of Scite customized for AutoIt:

Syntax Highlighting and Code folding:
Posted Image

CodeFolding:
Posted ImagePosted Image

Autocomplete:
Posted ImagePosted Image

Intellisense:
Posted Image

This post has been edited by WaeV: 18 May 2011 - 01:19 AM


#2 User is offline   kornman00 

  • SourceGuy 2.0
  • Group: Administrators
  • Joined: 15-November 01


Users Awards

Posted 18 May 2011 - 02:14 AM

I think Notepad++ comes with a LISP definition (which BSL's syntax is based off of), so it'd probably be the better route (I think Cereal Killer was already working on an autocomplete for it too) with its already widespread use and additional functionality

#3 User is offline   WaeV 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Joined: 06-May 11
  • LocationCosmos

Posted 18 May 2011 - 02:17 AM

That's a good point. Afaik to add additional lexers to Scite you have to build them in with the source code. Does Notepad++ support intellisense, though?

#4 User is offline   Xerax 

  • Double Faggot
  • PipPipPip
  • Group: Members
  • Joined: 07-May 11
  • LocationLondon, UK

Posted 18 May 2011 - 02:24 AM

View PostWaeV, on 18 May 2011 - 02:17 AM, said:

That's a good point. Afaik to add additional lexers to Scite you have to build them in with the source code. Does Notepad++ support intellisense, though?

I don't think it does.

#5 User is offline   kornman00 

  • SourceGuy 2.0
  • Group: Administrators
  • Joined: 15-November 01


Users Awards

Posted 18 May 2011 - 04:04 AM

If intellisense is that big of a deal to people, then roll with custom language support in Visual Studio using nFringe, which is what they used to integrate UnrealScript into VS: http://wiki.pixelmin...e=Tools:nFringe

#6 User is offline   WaeV 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Joined: 06-May 11
  • LocationCosmos

Posted 18 May 2011 - 06:15 AM

Then you'd need all of VS installed as well, wouldn't you? Just to edit teensy little text files?

#7 User is offline   Dwood 

  • Member
  • PipPip
  • Group: Members
  • Joined: 05-May 11
  • LocationSpanish Fork, UT

Posted 18 May 2011 - 01:26 PM

Notepad++ has autocomplete. The problem is that it won't suggest functions, which really isn't a big deal I just tell it to suggest words. :)

I just wish Notepad++ could recognize user-defined script functions and highlight them when they're called.

This post has been edited by Dwood: 18 May 2011 - 01:26 PM


#8 User is offline   WaeV 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Joined: 06-May 11
  • LocationCosmos

Posted 18 May 2011 - 08:29 PM

That's something that I know Scite can do. It suggests user-defined functions and variables.

#9 User is offline   TCK 

  • Script, AI, UI widgets, cutscenes, solo gameplay.
  • PipPipPip
  • Group: Members
  • Joined: 05-May 11
  • LocationSC

Posted 19 May 2011 - 04:20 PM

I've created a LISP language variant for Notepad++, it highlights all Haloscript commands (not sure about auto-complete).

Click to enlarge:


As you can see, functions (and engine globals) are blue, global/script declarations as well as the types are red, parentheses are dark maroon, numbers are pink, strings are gray, and names are green. (Comments are not shown, but they are a brown-gold color.)

This post has been edited by TCK: 19 May 2011 - 04:36 PM


#10 User is offline   Xerax 

  • Double Faggot
  • PipPipPip
  • Group: Members
  • Joined: 07-May 11
  • LocationLondon, UK

Posted 19 May 2011 - 05:58 PM

View PostTCK, on 19 May 2011 - 04:20 PM, said:

I've created a LISP language variant for Notepad++, it highlights all Haloscript commands (not sure about auto-complete).

Click to enlarge:


As you can see, functions (and engine globals) are blue, global/script declarations as well as the types are red, parentheses are dark maroon, numbers are pink, strings are gray, and names are green. (Comments are not shown, but they are a brown-gold color.)

Make the background dark blue. Much easier on the eyes/less strain for long periods of time, like so;


#11 User is offline   Dwood 

  • Member
  • PipPip
  • Group: Members
  • Joined: 05-May 11
  • LocationSpanish Fork, UT

Posted 19 May 2011 - 06:15 PM

hey tck how'd you get it to recognize the names of custom functions?

#12 User is offline   TCK 

  • Script, AI, UI widgets, cutscenes, solo gameplay.
  • PipPipPip
  • Group: Members
  • Joined: 05-May 11
  • LocationSC

Posted 19 May 2011 - 08:55 PM

View PostXerax, on 19 May 2011 - 05:58 PM, said:

Make the background dark blue. Much easier on the eyes/less strain for long periods of time, like so;

I suppose that's more personal preference than anything else, I prefer the contrast of the color against the white.


View PostDwood, on 19 May 2011 - 06:15 PM, said:

hey tck how'd you get it to recognize the names of custom functions?
In "settings" there's a "style configurator." In there, you can input custom keywords for certain colors. I added all known commands and engine globals to "functions" and set it as blue. Then I added the keywords "script, global, dormant, static, etc." to the second functions block, setting it to red, and so on.

#13 User is offline   jackrabbit72380 

  • ||||||||||||||||||||||||||||||||||||||||||||||||||||||
  • PipPip
  • Group: Members
  • Joined: 17-March 13
  • LocationFlorida

Posted 04 December 2013 - 01:39 AM

download?

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic