#include "../WebSite/repository/CWcode2DevCom.cwp" // Coloration syntaxique des mot-clés du TLC (Traffic Light Control) function keyword<"TLC">(sId : value) { return sId in {"strategy", "duration", "activate", "desactivate", "start", "time", "vehicles_hour"}; } // Coloration syntaxique des mot-clés du GRZ (GraphViz) function keyword<"GRZ">(sId : value) { return sId in {"digraph", "ranksep", "node", "shape", "style", "fillcolor", "fontname", "fontcolor", "color", "label"}; } #overload mainCWcode ::= => local sCodeWorkerPath; => { local sAbsolutePath = canonizePath(getOutputFilename()); local iIndex = sAbsolutePath.findLastString('/'); do { if $iIndex <= 0$ { sCodeWorkerPath = "http://www.codeworker.org/"; break; } sAbsolutePath = sAbsolutePath.leftString($iIndex + 1$); if existFile(sAbsolutePath + "CodeWorker.css") break; sCodeWorkerPath += "../"; iIndex = findLastString(sAbsolutePath.rsubString(1), '/'); } while true; local sDate = completeDate($formatDate(getNow(), "%t") - 0.375$, "%t"); @ @newFloatingLocation("title");@ @ } #super::#super::mainCWcode => { @
 CodeWorker is maintained by Cedric Lemaire. Please send a mail to Submit a bug or feature
@ } ; #overload CWcode<"docinfo/">(options : node) ::= removeCodeBegin(options) => { @by @options["author"]@

@ if options["keywords"] { insertTextToFloatingLocation("keywords", "\"" + options["keywords"] + "\""); } } ;