#include "../WebSite/repository/CWcode2DevCom.cwp" // Coloration syntaxique des mot-clés du TLC. function keyword<"TLC">(sId : value) { return sId in {"strategy", "duration", "activate", "desactivate", "start", "time", "vehicles_hour"}; } // Coloration syntaxique des mot-clés du GRZ. function keyword<"GRZ">(sId : value) { return sId in {"digraph", "ranksep", "node", "shape", "style", "fillcolor", "fontname", "fontcolor", "color", "label"}; } #overload mainCWcode ::= => { local sDate = completeDate($formatDate(getNow(), "%t") - 0.375$, "%t"); @ freshmeat.net: Tutorials - @ newFloatingLocation("title"); @

@ } #super::#super::mainCWcode => { if existFloatingLocation("TOC", false) insertText(getFloatingLocation("TOC"), "


"); @


T-Shirts and Fame!

We're eager to find people interested in writing articles on software-related topics. We're flexible on length, style, and topic, so long as you know what you're talking about and back up your opinions with facts. Anyone who writes an article gets a t-shirt from ThinkGeek in addition to 15 minutes of fame. If you think you'd like to try your hand at it, let jeff.covey@writeText('@');@freshmeat.net know what you'd like to write about.



© Copyright 2005 OSTG Open Source Technology Group, All Rights Reserved.
About freshmeat.net •  Privacy Statement •  Terms of Use •  Advertise •  Contact Us •  Revision: v2.6.0-pre1

@ } ; #overload CWcode<"title">(options : node) ::= #continue removeCodeBegin(options) =>{@

 @} text:sText =>{@
@} => insertText(getFloatingLocation("title"), removeLayout(sText)); endCode<"title"> ; #overload CWcode<"docinfo/">(options : node) ::= removeCodeBegin(options) => { @  by @options["author"]@, in Tutorials - @formatDate(getNow(), "%W, %B %d")@th @formatDate(getNow(), "%Y")@ 00:00 PDT

@ if options["keywords"] { insertTextToFloatingLocation("keywords", "\"" + options["keywords"] + "\""); } } ; #overload CWcode<"synopsis">(options : node) ::= removeCodeBegin(options) => {@

@} #super::#super::CWcode<"synopsis">(options):sText /* => sText = removeLayout(sText); => sText = sText.replaceString('\r', ""); => sText = sText.replaceString('\n', " "); => insertTextToFloatingLocation("description", "\"" + sText + "\""); */ => { @


Copyright notice: All reader-contributed material on freshmeat.net is the property and responsibility of its author; for reprint rights, please contact the author directly.

@ } ; #overload CWcode<"chapter">(options : node) ::= #continue removeCodeBegin(options) [ #check(options["chapter"] == "AuthorBio") => { @


@ } text:sText => { @

@ } | #check(options["chapter"] == "References") =>{@

@} text:sText =>{@

@} | => local sAnchor = 'L' + this.toc.size(); => { if $!existFloatingLocation("TOC", false)$ { newFloatingLocation("TOC"); } if options["chapter"] { sAnchor = options["chapter"]; } @

@ } text:sText => { sText = sText.removeLayout(); @

@ insertText(getFloatingLocation("TOC"), "
" + sText + ""); insert this.toc[sText]; } ] endCode<"chapter"> ; #overload CWcode<"section">(options : node) ::= #continue removeCodeBegin(options) => local sAnchor = 'L' + this.toc.size() + '_' + this.toc#back.size(); => { if this.toc.empty() error("cannot find a section outside of a chapter"); if options["section"] { @@ } if options["section"] { sAnchor = options["section"]; } @

@ } text:sText => { sText = sText.removeLayout(); @

@ insertText(getFloatingLocation("TOC"), "
" + sText + ""); insert this.toc#back[sText]; } endCode<"section"> ;