OI!
mircscripts.org -> IDEmIRC - > the mircDD bit
Ah HAH: I thought I'd lost it coz the provider mangled my site (yet again), but no:
http://users.quickfox.tk/~clockwerx/main.php?page=tutorialMEARdocBasically I already did this, suggested this, and got summarily ignored.
the basic syntax I had going was:
;public aliasname, aliastwo, etc
and mIRCDD reads the script file for ;public *, pulls out all the aliases from that, and calls them.
alias aliastwo {
;description blah blah <b>blah</b>
;syntax /aliastwo <blag>
;returns null
var %description = blah blah <b>blah</b>
var %syntax = <blag>
var %returns = null
if ($prop == description) || ($prop == syntax) || ($prop == returns) {
return $eval($+(%,$prop),2)
}
;rest of code here
}
there's a snippet on mircscripts.org which reads comments BELOW or ABOVE a script entry, so its compatible with that.
One of the original ideas for the mear site is to write a PHP document generator that picks out the
;description comments
;returns here
etc... creating an online archive of documentation that is updated dynamically (whenever someone calls it for the version of the file)...
I've also written a dialog based help viewer for the mear framework, which uses the $aliasname($null).syntax $aliasname($null).description
etc, creating a dynamic online help system for the script.
*edit*
instead of competing you want to discuss this so that we can integrate the two methods (one standard then..)?
If so feel free to priv me...
It'd be like EMCA (ECMA?) script wars - Microsoft vs. Netscape implementations of javascript (Jscript) if we didn't...
I'm working on a lot of mIRC related tools, such as a script parser for websites, that checks basic syntax, missing brackets, etc. Its not perfect but its nice. It'd stop scripts from being mangled at a lexical level...
This plus the 'documentation center' PHP code would make things nice and purdy in terms of standardisation.