davestewart
11-13-2008, 02:06 PM
Hi All,
I've been away from the max scene for a while in web development land, and have been bashing out code non-stop for what seems like forever!
Anyway, about a year ago I developed a tool to help me out when coding very long Flash scripts, as the editor in Flash is about as good as the one in MXS, ie no Outline View or code navigator or such like, so navigating scripts is not as easy as it could be.
Basically it allows you to place large ASCII Art style comments in your scripts, which can make it a bit easier to deliniate major sections, for example:
// some other code
// set a few variables maybe
// ------------------------------------------------------------------------------------------------------------------------
//
// ██ ██ ██ ██ ██ ██ ██████ ██ ████ ████
// ██ ██ ██ ██ ██ ██ ██
// ██ █████ ██ █████ ██ █████ ██ ██ ████ █████ ██ █████ ██ ██ ██ ██
// ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██████ ██ ██ ██ █████ █████
// ██ ██ ██ ██ ██ ██ █████ ██ ██ ██ █████ ██ ██ ██ ██ ██ ██
// ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
// ██ ██ ██ ██ ████ ██ █████ ██ ██ ████ █████ ██████ ████ █████ ██ ██
//
// ------------------------------------------------------------------------------------------------------------------------
// Initialize Stuff
// rest of code goes here
// more functions
// etc
I've been using it in Flash for a while now and it's such a time saver, but have finally got round to updating the interface so it caters for max (and other languages) as well.
You will need to add a couple of lines to your user preferences file to coerce the SciTE editor into using a character set that can render "full-block" characters, or you can use alternative characters like # or @.
Use or download it from here:
http://www.keyframesandcode.com/code/development/comment-headings/
Hopefully some of you will find this useful.
Cheers,
Dave
I've been away from the max scene for a while in web development land, and have been bashing out code non-stop for what seems like forever!
Anyway, about a year ago I developed a tool to help me out when coding very long Flash scripts, as the editor in Flash is about as good as the one in MXS, ie no Outline View or code navigator or such like, so navigating scripts is not as easy as it could be.
Basically it allows you to place large ASCII Art style comments in your scripts, which can make it a bit easier to deliniate major sections, for example:
// some other code
// set a few variables maybe
// ------------------------------------------------------------------------------------------------------------------------
//
// ██ ██ ██ ██ ██ ██ ██████ ██ ████ ████
// ██ ██ ██ ██ ██ ██ ██
// ██ █████ ██ █████ ██ █████ ██ ██ ████ █████ ██ █████ ██ ██ ██ ██
// ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██████ ██ ██ ██ █████ █████
// ██ ██ ██ ██ ██ ██ █████ ██ ██ ██ █████ ██ ██ ██ ██ ██ ██
// ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
// ██ ██ ██ ██ ████ ██ █████ ██ ██ ████ █████ ██████ ████ █████ ██ ██
//
// ------------------------------------------------------------------------------------------------------------------------
// Initialize Stuff
// rest of code goes here
// more functions
// etc
I've been using it in Flash for a while now and it's such a time saver, but have finally got round to updating the interface so it caters for max (and other languages) as well.
You will need to add a couple of lines to your user preferences file to coerce the SciTE editor into using a character set that can render "full-block" characters, or you can use alternative characters like # or @.
Use or download it from here:
http://www.keyframesandcode.com/code/development/comment-headings/
Hopefully some of you will find this useful.
Cheers,
Dave
