View Single Post
  #9  
Old 01-29-2011, 01:47 AM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
Quote:
Originally Posted by cbk1994 View Post
Nice work. Someone should take the code you make once you've finished it and generate documentation for some commonly-used objects (TServerPlayer, GuiControl (and children), etc) and upload it somewhere. It would be a valuable resource for new scripters and experienced scripters. I might have a crack at it if no one else does.
Yeah, I've thought of this. My first thought was "How do you document an object anyways?", since they are created at runtime and could really be anything. I guess the smartest way to do it would be to create some classes that model the object hierarchy. I would definitely need to get some join() support working to make it as good as it should be though (e.g., generate a graph/tree of the object hierarchy).

And yeah, if you want to do something like this it'd be super cool. It'd also in general be nice to have someone making docs to see if there are any sudden feature requests and stuff. I'm hoping that I'll maybe release a version of GDoc within a couple days.

Quote:
Originally Posted by cbk1994 View Post
EDIT: What are you using for syntax highlighting of the source code? I can provide you with the GeSHi rules I use on my pastebin site if that would be at all helpful to you (example) — even if you're not using GeSHi, you might find the color definitions helpful.
Currently I'm using a Haskell library that reads kate syntax files and highlights accordingly. At the moment I'm just using the Javascript syntax file, but I will probably edit it at some point to match GS2 better.

If you want to send your file my way that'd definitely be helpful so I can see the various tokens you've defined and such.
Reply With Quote