From ef5378231b81628e774d781e5c73b1b3944b7135 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 17 Nov 2012 17:54:21 +0000 Subject: [PATCH] 2012-11-17 18:50 UTC+0100 Viktor Szakats (harbour syenar.net) + website/css/shCore.css + website/js + website/js/shBrushHarbour.js + website/js/shCore.js + added components for http://alexgorbatchev.com/SyntaxHighlighter/ a JS based syntax highlighter by Alex Gorbatchev + website/css/shThemeDefault.css + added Harbour theme (it's based on the php one) * website/menu/harbour-menu.js ! fixed wrongly displayed bitmaps when used from under a subdir. * website/samples/array16.prg.html * website/samples/arreval.prg.html * website/samples/begin.prg.html * website/samples/byref.prg.html * website/samples/codebl.prg.html * website/samples/codebloc.prg.html * website/samples/dates3.prg.html * website/samples/foreach.prg.html * website/samples/function.cfm.html * website/samples/hello.prg.html * website/samples/initexit.prg.html * website/samples/longdev.prg.html * website/samples/mousetst.prg.html * website/samples/onidle.prg.html * website/samples/osshell.prg.html * website/samples/parseini.ini.html * website/samples/parseini.prg.html * website/samples/switch.prg.html * website/samples/testbrdb.prg.html * website/samples/testbrw.prg.html * website/samples/testhtml.prg.html * website/samples/testidle.prg.html * website/samples/tstmacro.prg.html + replaced static syntax highlighting with new JS based one. Old system used old HTML standard and old unfixed copies of tests. See f.e.: http://harbour-project.sourceforge.net/samples/testbrw.prg.html In new system the code can be copied as is from the source to these pages. (it'd be even better if a directly link could be used to the source repo on the web) + updated all code with fresh copies from /tests directory * tests/parseini.prg * tests/testhtml.prg * minor cleanups * website/samples/array16.html * website/samples/arreval.html * website/samples/begin.html * website/samples/byref.html * website/samples/codebl.html * website/samples/codebloc.html * website/samples/dates3.html * website/samples/foreach.html * website/samples/hello.html * website/samples/HowToBuildOnLinux.html * website/samples/HowToBuildOnWindows.html * website/samples/initexit.html * website/samples/longdev.html * website/samples/mousetst.html * website/samples/onidle.html * website/samples/osshell.html * website/samples/parseini.html * website/samples/switch.html * website/samples/testbrdb.html * website/samples/testbrw.html * website/samples/testhtml.html * website/samples/testidle.html * website/samples/tstmacro.html + changed to use absolute paths to refer to common page elements --- harbour/ChangeLog | 82 +- harbour/tests/parseini.prg | 2 +- harbour/tests/testhtml.prg | 18 +- harbour/website/css/shCore.css | 210 ++ harbour/website/css/shThemeDefault.css | 101 + harbour/website/js/shBrushHarbour.js | 40 + harbour/website/js/shCore.js | 1721 +++++++++++++++++ harbour/website/menu/harbour-menu.js | 2 +- .../website/samples/HowToBuildOnLinux.html | 18 +- .../website/samples/HowToBuildOnWindows.html | 18 +- harbour/website/samples/array16.html | 20 +- harbour/website/samples/array16.prg.html | 137 +- harbour/website/samples/arreval.html | 20 +- harbour/website/samples/arreval.prg.html | 55 +- harbour/website/samples/begin.html | 20 +- harbour/website/samples/begin.prg.html | 234 ++- harbour/website/samples/byref.html | 20 +- harbour/website/samples/byref.prg.html | 123 +- harbour/website/samples/codebl.html | 20 +- harbour/website/samples/codebl.prg.html | 322 +-- harbour/website/samples/codebloc.html | 20 +- harbour/website/samples/codebloc.prg.html | 226 +-- harbour/website/samples/dates3.html | 20 +- harbour/website/samples/dates3.prg.html | 109 +- harbour/website/samples/foreach.html | 20 +- harbour/website/samples/foreach.prg.html | 308 +-- harbour/website/samples/function.cfm.html | 124 +- harbour/website/samples/hello.html | 20 +- harbour/website/samples/hello.prg.html | 56 +- harbour/website/samples/initexit.html | 20 +- harbour/website/samples/initexit.prg.html | 129 +- harbour/website/samples/longdev.html | 20 +- harbour/website/samples/longdev.prg.html | 101 +- harbour/website/samples/mousetst.html | 20 +- harbour/website/samples/mousetst.prg.html | 467 +++-- harbour/website/samples/onidle.html | 20 +- harbour/website/samples/onidle.prg.html | 174 +- harbour/website/samples/osshell.html | 20 +- harbour/website/samples/osshell.prg.html | 80 +- harbour/website/samples/parseini.html | 20 +- harbour/website/samples/parseini.ini.html | 86 +- harbour/website/samples/parseini.prg.html | 290 +-- harbour/website/samples/switch.html | 20 +- harbour/website/samples/switch.prg.html | 263 ++- harbour/website/samples/testbrdb.html | 20 +- harbour/website/samples/testbrdb.prg.html | 64 +- harbour/website/samples/testbrw.html | 20 +- harbour/website/samples/testbrw.prg.html | 277 ++- harbour/website/samples/testhtml.html | 20 +- harbour/website/samples/testhtml.prg.html | 244 +-- harbour/website/samples/testidle.html | 20 +- harbour/website/samples/testidle.prg.html | 82 +- harbour/website/samples/tstmacro.html | 20 +- harbour/website/samples/tstmacro.prg.html | 277 +-- 54 files changed, 4488 insertions(+), 2372 deletions(-) create mode 100644 harbour/website/css/shCore.css create mode 100644 harbour/website/css/shThemeDefault.css create mode 100644 harbour/website/js/shBrushHarbour.js create mode 100644 harbour/website/js/shCore.js diff --git a/harbour/ChangeLog b/harbour/ChangeLog index da1dea083d..cdb619ba52 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,7 +16,87 @@ The license applies to all entries newer than 2009-04-28. */ -c2012-11-17 16:29 UTC+0100 Viktor Szakats (vszakats syenar.net) +2012-11-17 18:50 UTC+0100 Viktor Szakats (harbour syenar.net) + + website/css/shCore.css + + website/js + + website/js/shBrushHarbour.js + + website/js/shCore.js + + added components for http://alexgorbatchev.com/SyntaxHighlighter/ + a JS based syntax highlighter by Alex Gorbatchev + + + website/css/shThemeDefault.css + + added Harbour theme (it's based on the php one) + + * website/menu/harbour-menu.js + ! fixed wrongly displayed bitmaps when used from + under a subdir. + + * website/samples/array16.prg.html + * website/samples/arreval.prg.html + * website/samples/begin.prg.html + * website/samples/byref.prg.html + * website/samples/codebl.prg.html + * website/samples/codebloc.prg.html + * website/samples/dates3.prg.html + * website/samples/foreach.prg.html + * website/samples/function.cfm.html + * website/samples/hello.prg.html + * website/samples/initexit.prg.html + * website/samples/longdev.prg.html + * website/samples/mousetst.prg.html + * website/samples/onidle.prg.html + * website/samples/osshell.prg.html + * website/samples/parseini.ini.html + * website/samples/parseini.prg.html + * website/samples/switch.prg.html + * website/samples/testbrdb.prg.html + * website/samples/testbrw.prg.html + * website/samples/testhtml.prg.html + * website/samples/testidle.prg.html + * website/samples/tstmacro.prg.html + + replaced static syntax highlighting + with new JS based one. Old system + used old HTML standard and old unfixed + copies of tests. See f.e.: + http://harbour-project.sourceforge.net/samples/testbrw.prg.html + In new system the code can be copied + as is from the source to these pages. + (it'd be even better if a directly link could + be used to the source repo on the web) + + updated all code with fresh copies + from /tests directory + + * tests/parseini.prg + * tests/testhtml.prg + * minor cleanups + + * website/samples/array16.html + * website/samples/arreval.html + * website/samples/begin.html + * website/samples/byref.html + * website/samples/codebl.html + * website/samples/codebloc.html + * website/samples/dates3.html + * website/samples/foreach.html + * website/samples/hello.html + * website/samples/HowToBuildOnLinux.html + * website/samples/HowToBuildOnWindows.html + * website/samples/initexit.html + * website/samples/longdev.html + * website/samples/mousetst.html + * website/samples/onidle.html + * website/samples/osshell.html + * website/samples/parseini.html + * website/samples/switch.html + * website/samples/testbrdb.html + * website/samples/testbrw.html + * website/samples/testhtml.html + * website/samples/testidle.html + * website/samples/tstmacro.html + + changed to use absolute paths to refer to + common page elements + +2012-11-17 16:29 UTC+0100 Viktor Szakats (vszakats syenar.net) * website/samples.html - website/samples/dosshell.html - website/samples/dosshell.prg.html diff --git a/harbour/tests/parseini.prg b/harbour/tests/parseini.prg index 508857cb05..24abb05572 100644 --- a/harbour/tests/parseini.prg +++ b/harbour/tests/parseini.prg @@ -2,7 +2,7 @@ * $Id$ */ -/****************************************************************** +/** * Test for Ini file reading/writing * * Giancarlo Niccolai diff --git a/harbour/tests/testhtml.prg b/harbour/tests/testhtml.prg index 987e06d008..328d90a39a 100644 --- a/harbour/tests/testhtml.prg +++ b/harbour/tests/testhtml.prg @@ -2,15 +2,15 @@ * $Id$ */ -/* -* -* Harbour Test of a HTML-Generator class. -* -* Tips: - Use ShowResults to make dynamic html (to test dynamic -* results, put the exe file on CGI-BIN dir or equivalent); -* - Use SaveToFile to make static html page -* -**/ +/** + * + * Harbour Test of a HTML-Generator class. + * + * Tips: - Use ShowResults to make dynamic html (to test dynamic + * results, put the exe file on CGI-BIN dir or equivalent); + * - Use SaveToFile to make static html page + * + */ #include "hbclass.ch" diff --git a/harbour/website/css/shCore.css b/harbour/website/css/shCore.css new file mode 100644 index 0000000000..e603aa046b --- /dev/null +++ b/harbour/website/css/shCore.css @@ -0,0 +1,210 @@ +.syntaxhighlighter a, +.syntaxhighlighter div, +.syntaxhighlighter code, +.syntaxhighlighter table, +.syntaxhighlighter table td, +.syntaxhighlighter table tr, +.syntaxhighlighter table tbody, +.syntaxhighlighter table thead, +.syntaxhighlighter table caption, +.syntaxhighlighter textarea { + -moz-border-radius: 0 0 0 0 !important; + -webkit-border-radius: 0 0 0 0 !important; + background: none !important; + border: 0 !important; + bottom: auto !important; + float: none !important; + height: auto !important; + left: auto !important; + line-height: 1.1em !important; + margin: 0 !important; + outline: 0 !important; + overflow: visible !important; + padding: 0 !important; + position: static !important; + right: auto !important; + text-align: left !important; + top: auto !important; + vertical-align: baseline !important; + width: auto !important; + box-sizing: content-box !important; + font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; + font-weight: normal !important; + font-style: normal !important; + font-size: 1em !important; + min-height: inherit !important; + min-height: auto !important; +} + +.syntaxhighlighter { + width: 100% !important; + margin: 1em 0 1em 0 !important; + position: relative !important; + overflow: auto !important; + font-size: 1em !important; +} +.syntaxhighlighter.source { + overflow: hidden !important; +} +.syntaxhighlighter .bold { + font-weight: bold !important; +} +.syntaxhighlighter .italic { + font-style: italic !important; +} +.syntaxhighlighter .line { + white-space: pre !important; +} +.syntaxhighlighter table { + width: 100% !important; +} +.syntaxhighlighter table caption { + text-align: left !important; + padding: .5em 0 0.5em 1em !important; +} +.syntaxhighlighter table td.code { + width: 100% !important; +} +.syntaxhighlighter table td.code .container { + position: relative !important; +} +.syntaxhighlighter table td.code .container textarea { + box-sizing: border-box !important; + position: absolute !important; + left: 0 !important; + top: 0 !important; + width: 100% !important; + height: 100% !important; + border: none !important; + background: white !important; + padding-left: 1em !important; + overflow: hidden !important; + white-space: pre !important; +} +.syntaxhighlighter table td.gutter .line { + text-align: right !important; + padding: 0 0.5em 0 1em !important; +} +.syntaxhighlighter table td.code .line { + padding: 0 1em !important; +} +.syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line { + padding-left: 0em !important; +} +.syntaxhighlighter.show { + display: block !important; +} +.syntaxhighlighter.collapsed table { + display: none !important; +} +.syntaxhighlighter.collapsed .toolbar { + padding: 0.1em 0.8em 0em 0.8em !important; + font-size: 1em !important; + position: static !important; + width: auto !important; + height: auto !important; +} +.syntaxhighlighter.collapsed .toolbar span { + display: inline !important; + margin-right: 1em !important; +} +.syntaxhighlighter.collapsed .toolbar span a { + padding: 0 !important; + display: none !important; +} +.syntaxhighlighter.collapsed .toolbar span a.expandSource { + display: inline !important; +} +.syntaxhighlighter .toolbar { + position: absolute !important; + right: 1px !important; + top: 1px !important; + width: 11px !important; + height: 11px !important; + font-size: 10px !important; + z-index: 10 !important; +} +.syntaxhighlighter .toolbar span.title { + display: inline !important; +} +.syntaxhighlighter .toolbar a { + display: block !important; + text-align: center !important; + text-decoration: none !important; + padding-top: 1px !important; +} +.syntaxhighlighter .toolbar a.expandSource { + display: none !important; +} +.syntaxhighlighter.ie { + font-size: .9em !important; + padding: 1px 0 1px 0 !important; +} +.syntaxhighlighter.ie .toolbar { + line-height: 8px !important; +} +.syntaxhighlighter.ie .toolbar a { + padding-top: 0px !important; +} +.syntaxhighlighter.printing .line.alt1 .content, +.syntaxhighlighter.printing .line.alt2 .content, +.syntaxhighlighter.printing .line.highlighted .number, +.syntaxhighlighter.printing .line.highlighted.alt1 .content, +.syntaxhighlighter.printing .line.highlighted.alt2 .content { + background: none !important; +} +.syntaxhighlighter.printing .line .number { + color: #bbbbbb !important; +} +.syntaxhighlighter.printing .line .content { + color: black !important; +} +.syntaxhighlighter.printing .toolbar { + display: none !important; +} +.syntaxhighlighter.printing a { + text-decoration: none !important; +} +.syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a { + color: black !important; +} +.syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a { + color: #008200 !important; +} +.syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a { + color: blue !important; +} +.syntaxhighlighter.printing .keyword { + color: #006699 !important; + font-weight: bold !important; +} +.syntaxhighlighter.printing .preprocessor { + color: gray !important; +} +.syntaxhighlighter.printing .variable { + color: #aa7700 !important; +} +.syntaxhighlighter.printing .value { + color: #009900 !important; +} +.syntaxhighlighter.printing .functions { + color: #ff1493 !important; +} +.syntaxhighlighter.printing .constants { + color: #0066cc !important; +} +.syntaxhighlighter.printing .script { + font-weight: bold !important; +} +.syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a { + color: gray !important; +} +.syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a { + color: #ff1493 !important; +} +.syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a { + color: red !important; +} +.syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a { + color: black !important; +} diff --git a/harbour/website/css/shThemeDefault.css b/harbour/website/css/shThemeDefault.css new file mode 100644 index 0000000000..2942c4a2c2 --- /dev/null +++ b/harbour/website/css/shThemeDefault.css @@ -0,0 +1,101 @@ +.syntaxhighlighter { + background-color: white !important; +} +.syntaxhighlighter .line.alt1 { + background-color: white !important; +} +.syntaxhighlighter .line.alt2 { + background-color: white !important; +} +.syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { + background-color: #e0e0e0 !important; +} +.syntaxhighlighter .line.highlighted.number { + color: black !important; +} +.syntaxhighlighter table caption { + color: black !important; +} +.syntaxhighlighter .gutter { + color: #afafaf !important; +} +.syntaxhighlighter .gutter .line { + border-right: 3px solid #6ce26c !important; +} +.syntaxhighlighter .gutter .line.highlighted { + background-color: #6ce26c !important; + color: white !important; +} +.syntaxhighlighter.printing .line .content { + border: none !important; +} +.syntaxhighlighter.collapsed { + overflow: visible !important; +} +.syntaxhighlighter.collapsed .toolbar { + color: blue !important; + background: white !important; + border: 1px solid #6ce26c !important; +} +.syntaxhighlighter.collapsed .toolbar a { + color: blue !important; +} +.syntaxhighlighter.collapsed .toolbar a:hover { + color: red !important; +} +.syntaxhighlighter .toolbar { + color: white !important; + background: #6ce26c !important; + border: none !important; +} +.syntaxhighlighter .toolbar a { + color: white !important; +} +.syntaxhighlighter .toolbar a:hover { + color: black !important; +} +.syntaxhighlighter .plain, .syntaxhighlighter .plain a { + color: black !important; +} +.syntaxhighlighter .comments, .syntaxhighlighter .comments a { + color: #008200 !important; +} +.syntaxhighlighter .string, .syntaxhighlighter .string a { + color: blue !important; +} +.syntaxhighlighter .keyword { + color: #006699 !important; +} +.syntaxhighlighter .preprocessor { + color: gray !important; +} +.syntaxhighlighter .variable { + color: #aa7700 !important; +} +.syntaxhighlighter .value { + color: #009900 !important; +} +.syntaxhighlighter .functions { + color: #ff1493 !important; +} +.syntaxhighlighter .constants { + color: #0066cc !important; +} +.syntaxhighlighter .script { + font-weight: bold !important; + color: #006699 !important; + background-color: none !important; +} +.syntaxhighlighter .color1, .syntaxhighlighter .color1 a { + color: gray !important; +} +.syntaxhighlighter .color2, .syntaxhighlighter .color2 a { + color: #ff1493 !important; +} +.syntaxhighlighter .color3, .syntaxhighlighter .color3 a { + color: red !important; +} + +.syntaxhighlighter .keyword { + font-weight: bold !important; +} diff --git a/harbour/website/js/shBrushHarbour.js b/harbour/website/js/shBrushHarbour.js new file mode 100644 index 0000000000..cf874001d9 --- /dev/null +++ b/harbour/website/js/shBrushHarbour.js @@ -0,0 +1,40 @@ +;(function() +{ + // CommonJS + SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null); + + function Brush() + { + var funcs = 'AAdd Abs Accelerator AChoice AClone ACopy ADel ADir AEval AFields AFill AIns Alert Alias AllTrim AltD AMPM ApplyDefau Array Asc AScan ASize ASort At ATail Bin2I Bin2L Bin2W Bof Break Browse ButtnDefCo CDoW cftsAdd cftsClose cftsCrea cftsDelete cftsIfDel cftsNext cftsOpen cftsRecN cftsReplac cftsSet cftsUndel cftsVeri cftsVers CheckBox CheckDefCo Chr CLIPPER520 CLIPPER530 CMonth Col ColorSelect ComboDefCo CToD CurDir Date Day Days dbAppend dbClearFil dbClearFilter dbClearIndex dbClearRel dbClearRelation dbCloseAll dbCloseAre dbCloseArea dbCommit dbCommitAll dbCreate dbCreateIndex dbDelete dbDrop dbEdit dbEval dbExists DBF DBFBLOB DBFCDX DBFDBT DBFFPT dbFieldInf dbFieldInfo dbFileGet dbFilePut dbFilter DBFNSX DBFNTX DBFSMT dbGoBottom dbGoto dbGoTop DbgShadow dbInfo dbOrderInf dbOrderInfo dbRecall dbRecordIn dbRecordInfo dbReindex dbRelation dbRename dbRLock dbRLockLis dbRLockList dbRSelect dbRUnlock dbSeek dbSelectAr dbSelectArea dbSetDrive dbSetDriver dbSetFilte dbSetFilter dbSetIndex dbSetOrder dbSetRelat dbSetRelation dbSkip dbStruct dbTableExt dbUnlock dbUnlockAl dbUnlockAll dbUseArea DefPath Deleted Delim Descend DevOut DevOutPict DevPos DirChange Directory DirRemove DiskChange DiskName DiskSpace DispBegin DispBox DispCount DispEnd DispOut DispOutAt Do DosError DoW DToC DToS ElapTime Empty Eof EraseGetMsg ErrorBlock ErrorInHan ErrorInHandler ErrorLevel ErrorNew ErrorSys Eval Exp FClose FCount FCreate FErase FError FieldBlock FieldDec FieldGet FieldLen FieldName FieldPos FieldPut FieldType FieldWBlock File FKLabel FKMax FLock FOpen Found FRead FReadStr FRename FSeek FSetDevMod FWrite Get GetActive GetApplyKey GetClrBack GetClrFore GetClrPair GetDoSetKey GetE GetEnv GetNew GetPairLen GetPairPos GetPostValidate GetPreValidate GetReader GUIApplyKey GUIPostValidate GUIPreValidate GUIReader HardCR HBCheckBox HBClass HBEditor HBGetList HBHash HBLabelForm HBListBox HBMemoEditor HBMenuItem HBMenuSys HBObject HBPersistent HBPointer HBPopupMenu HBProfile HBProfileEntity HBProfileFunction HBProfileLowLevel HBProfileMethod HBProfileOpcode HBProfileReport HBProfileReportToArray HBProfileReportToFile HBProfileReportToString HBProfileReportToTBrowse HBPushButton HBRadioButton HBRadioGroup HBReportForm HBScalar HBScrollBar HBTextLine HBTopBarMenu hb_ADel hb_Adler32 hb_AIns hb_Alert hb_ANSIToOEM hb_AParams hb_argc hb_argCheck hb_argShift hb_argString hb_argv hb_ArrayToParams hb_AScan hb_asciiIsAlpha hb_asciiIsDigit hb_asciiIsLower hb_asciiIsUpper hb_asciiLower hb_asciiUpper hb_At hb_AtI hb_ATokens hb_AtX hb_base64Decode hb_base64Encode hb_BAt hb_BChar hb_BCode hb_bitAnd hb_bitNot hb_bitOr hb_bitReset hb_bitSet hb_bitShift hb_bitTest hb_bitXor hb_BLeft hb_BLen hb_blowfishDecrypt hb_blowfishDecrypt_CFB hb_blowfishEncrypt hb_blowfishEncrypt_CFB hb_blowfishKey hb_BPeek hb_BPoke hb_BRight hb_BSubStr hb_BuildDate hb_ByteSwapI hb_ByteSwapL hb_ByteSwapLL hb_ByteSwapU hb_ByteSwapW hb_cdpCharMax hb_cdpInfo hb_cdpIsUTF8 hb_cdpList hb_cdpOS hb_cdpSelect hb_cdpTerm hb_cdpUniID hb_Clocks2Secs hb_ClrArea hb_CmdLine hb_ColorIndex hb_ColorToN hb_comClose hb_comDiscardChar hb_comErrorChar hb_comFlowChars hb_comFlowControl hb_comFlowSet hb_comFlush hb_comGetDevice hb_comGetDeviceHandle hb_comGetError hb_comGetOSError hb_comInit hb_comInputCount hb_comInputState hb_comLastNum hb_comLSR hb_comMCR hb_comMSR hb_comOpen hb_comOutputCount hb_comOutputState hb_Compiler hb_comRecv hb_comSend hb_comSendBreak hb_comSetDevice hb_comSetError hb_CRC hb_CRC16 hb_CRC32 hb_CRCCT hb_CStr hb_CToD hb_CToT hb_CurDrive hb_cwd hb_Date hb_DateTime hb_dbCreateTemp hb_dbDetach hb_dbDrop hb_dbExists hb_dbPack hb_dbRename hb_dbRequest hb_dbZap hb_default hb_Deserialize hb_DirBase hb_DirBuild hb_DirCreate hb_DirDelete hb_DirExists hb_DirScan hb_DirSepAdd hb_DirSepDel hb_DirSepToOS hb_DirTemp hb_DirUnbuild hb_DisableWaitLocks hb_DiskSpace hb_DispBox hb_DispOutAt hb_DispOutAtBox hb_DToC hb_DToT hb_DynCall hb_EndObject hb_eol hb_ExecFromArray hb_ExecMsg hb_FCommit hb_FCopy hb_FCreate hb_FEof hb_FGetAttr hb_FGetDateTime hb_FieldDec hb_FieldLen hb_FieldType hb_FileExists hb_FileMatch hb_FIsDevice hb_FLink hb_FLinkRead hb_FLinkSym hb_FLock hb_FNameDir hb_FNameExists hb_FNameExt hb_FNameExtSet hb_FNameExtSetDef hb_FNameMerge hb_FNameName hb_FNameNameExt hb_FNameSplit hb_ForNext hb_FSetAttr hb_FSetDateTime hb_FSetDevMode hb_FSize hb_FTempCreate hb_FTempCreateEx hb_FUnlock hb_gcAll hb_gcStep hb_Get hb_GetEnv hb_GetReadVar hb_GetStdErr hb_GetStdIn hb_GetStdOut hb_gfxPrimitive hb_gfxText hb_gtAlert hb_gtCreate hb_gtInfo hb_gtLock hb_gtReload hb_gtSelect hb_GTSYS hb_gtUnlock hb_gtVersion hb_gzClearErr hb_gzClose hb_gzCompress hb_gzCompressBound hb_gzDirect hb_gzDOpen hb_gzEof hb_gzError hb_gzFlush hb_gzGetC hb_gzGetS hb_gzOpen hb_gzPutC hb_gzPutS hb_gzRead hb_gzRewind hb_gzSeek hb_gzSetParams hb_gzTell hb_gzUnGetC hb_gzWrite hb_HAllocate hb_Hash hb_HAutoAdd hb_HBinary hb_HCaseMatch hb_HClear hb_HClone hb_HCopy hb_HDefault hb_HDel hb_HDelAt hb_HEval hb_HexToNum hb_HexToStr hb_HFill hb_HGet hb_HGetDef hb_HHasKey hb_HKeepOrder hb_HKeyAt hb_HKeys hb_HMAC_SHA1 hb_HMAC_SHA224 hb_HMAC_SHA256 hb_HMAC_SHA384 hb_HMAC_SHA512 hb_HMerge hb_Hour hb_HPairAt hb_HPos hb_hrbDo hb_hrbGetFunList hb_hrbGetFunSym hb_hrbLoad hb_hrbRun hb_hrbSignature hb_hrbUnload hb_HScan hb_HSet hb_HSetAutoAdd hb_HSetBinary hb_HSetCaseMatch hb_HSetOrder hb_HSort hb_HValueAt hb_HValues hb_i18n_AddText hb_i18n_Check hb_i18n_Codepage hb_i18n_Create hb_i18n_Description hb_i18n_gettext hb_i18n_gettext_strict hb_i18n_HeaderSize hb_i18n_LoadPOT hb_i18n_ngettext hb_i18n_ngettext_strict hb_i18n_PluralForm hb_i18n_RestoreTable hb_i18n_SavePOT hb_i18n_SaveTable hb_i18n_Set hb_idleAdd hb_idleDel hb_idleReset hb_idleSleep hb_idleState hb_inetAccept hb_inetAddress hb_inetCleanup hb_inetClearError hb_inetClearPeriodCallback hb_inetClearTimeLimit hb_inetClearTimeout hb_inetClose hb_inetCompress hb_inetConnect hb_inetConnectIP hb_inetCount hb_inetCreate hb_inetCRLF hb_inetDataReady hb_inetDGram hb_inetDGramBind hb_inetDGramRecv hb_inetDGramSend hb_inetErrorCode hb_inetErrorDesc hb_inetFD hb_inetGetAlias hb_inetGetHosts hb_inetGetRcvBufSize hb_inetGetSndBufSize hb_inetIFInfo hb_inetInit hb_inetIsSocket hb_inetPeriodCallback hb_inetPort hb_inetRecv hb_inetRecvAll hb_inetRecvEndblock hb_inetRecvLine hb_inetSend hb_inetSendAll hb_inetServer hb_inetSetRcvBufSize hb_inetSetSndBufSize hb_inetstatus hb_inetTimeLimit hb_inetTimeout hb_iniNew hb_iniRead hb_iniReadStr hb_iniSetComment hb_iniWrite hb_iniWriteStr HB_ISARRAY HB_ISBLOCK HB_ISCHAR HB_ISDATE HB_ISDATETIME HB_ISEVALITEM hb_IsFunction HB_ISHASH HB_ISHASHKEY HB_ISLOGICAL HB_ISMEMO HB_ISNIL HB_ISNULL HB_ISNUMERIC HB_ISOBJECT HB_ISPOINTER hb_IsPrinter hb_IsRegex HB_ISSTRING HB_ISSYMBOL HB_ISTIMESTAMP hb_jsonDecode hb_jsonEncode hb_keyChar hb_keyClear hb_keyCode hb_keyIns hb_keyLast hb_keyNext hb_keyPut hb_keySetLast hb_keyStd hb_langErrMsg hb_langMessage hb_langName hb_langNew hb_langSelect hb_libError hb_libExt hb_libFree hb_libGetFunSym hb_libLoad hb_libName hb_libPostfix hb_libPrefix hb_lppCreate hb_lppDestroy hb_lppError hb_lppRecv hb_lppRecvLen hb_lppSend hb_lppSendLen hb_lppSetLimit hb_macroBlock hb_matherBlock hb_matherMode hb_MD5 hb_MD5Decrypt hb_MD5Encrypt hb_MD5File hb_MemoRead hb_MemoWrit hb_MethodName hb_MGetBounds hb_MilliSeconds hb_Minute hb_MMiddleDown hb_mtvm hb_mutexCreate hb_mutexEval hb_mutexLock hb_mutexNotify hb_mutexNotifyAll hb_mutexQueueInfo hb_mutexSubscribe hb_mutexSubscribeNow hb_mutexUnlock hb_mvRestore hb_mvSave hb_NToColor hb_ntos hb_NToT hb_NumToHex hb_OEMToANSI hb_osCPU hb_osDriveSeparator hb_osError hb_osFileMask hb_osIs64bit hb_osIsWin2K hb_osIsWin9x hb_osIsWinCE hb_osIsWinNT hb_osIsWinVista hb_osNewLine hb_osPathDelimiters hb_osPathListSeparator hb_osPathSeparator hb_PathJoin hb_PathNormalize hb_PathRelativize hb_PCodeVer hb_PIsByRef hb_PopupMenu hb_PRead hb_processClose hb_processOpen hb_processRun hb_processValue hb_ProgName hb_ps hb_PValue hb_rand32 hb_Random hb_RandomInt hb_RandomIntMax hb_RandomSeed hb_RAScan hb_RAt hb_rddGetTempAlias hb_rddInfo hb_regex hb_regexAll hb_regexAtX hb_regexComp hb_regexHas hb_regexLike hb_regexMatch hb_regexSplit hb_ReleaseCPU hb_run hb_ScrMaxCol hb_ScrMaxRow hb_Scroll hb_Sec hb_SecondsCPU hb_Serialize hb_SetClsHandle hb_SetDispCP hb_SetEnv hb_SetKey hb_SetKeyArray hb_SetKeyCheck hb_SetKeyCP hb_SetKeyGet hb_SetKeySave hb_SetLastKey hb_SetMacro hb_SetObject hb_SetTermCP hb_SHA1 hb_SHA224 hb_SHA256 hb_SHA384 hb_SHA512 hb_Shadow hb_socketAccept hb_socketBind hb_socketClose hb_socketConnect hb_socketErrorString hb_socketGetError hb_socketGetFD hb_socketGetHostName hb_socketGetHosts hb_socketGetIFaces hb_socketGetOSError hb_socketGetPeerName hb_socketGetRcvBufSize hb_socketGetSndBufSize hb_socketGetSockName hb_socketListen hb_socketOpen hb_socketRecv hb_socketRecvFrom hb_socketResolveAddr hb_socketResolveINetAddr hb_socketSelect hb_socketSelectRead hb_socketSelectWrite hb_socketSelectWriteEx hb_socketSend hb_socketSendTo hb_socketSetBlockingIO hb_socketSetBroadcast hb_socketSetExclusiveAddr hb_socketSetKeepAlive hb_socketSetMulticast hb_socketSetNoDelay hb_socketSetRcvBufSize hb_socketSetReuseAddr hb_socketSetSndBufSize hb_socketShutdown hb_SToD hb_SToT hb_StrCDecode hb_StrClear hb_StrDecodEscape hb_StrFormat hb_StrShrink hb_StrToExp hb_StrToHex hb_StrToTS hb_StrToUTF8 hb_StrXor hb_threadDetach hb_threadID hb_threadJoin hb_threadOnce hb_threadOnceInit hb_threadQuitRequest hb_threadSelf hb_threadStart hb_threadTerminateAll hb_threadWait hb_threadWaitForAll hb_tokenCount hb_tokenGet hb_tokenPtr hb_traceFile hb_traceFlush hb_traceLevel hb_traceLog hb_traceLogAt hb_traceLogLevel hb_traceMode hb_traceState hb_traceString hb_traceSysOut hb_Translate hb_TSToStr hb_TToC hb_TToD hb_TToN hb_TToS hb_UAt hb_UChar hb_UCode hb_ULeft hb_ULen hb_UPeek hb_UPoke hb_URight hb_UserLang hb_UserName hb_USubStr hb_UTCOffset hb_utf8Asc hb_utf8At hb_utf8Chr hb_utf8Left hb_utf8Len hb_utf8Peek hb_utf8Poke hb_utf8RAt hb_utf8Right hb_utf8StrTran hb_utf8Stuff hb_utf8SubStr hb_UTF8ToStr hb_UTF8ToStrBox hb_ValToExp hb_ValToStr hb_Version hb_WAeval hb_WildMatch hb_WildMatchI hb_ZCompress hb_ZCompressBound hb_ZError hb_ZLibVersion hb_ZUncompress hb_ZUncompressLen Header HitTest hs_Add hs_Close hs_Create hs_Delete hs_Filter hs_IfDel hs_Index hs_KeyCount hs_Next hs_Open hs_Replace hs_Set hs_Undelete hs_Verify hs_Version I2Bin IndexExt IndexKey IndexOrd Inkey Int IsAffirm IsAlpha IsColor IsDefColor IsDigit IsDisk IsLower IsNegative IsPrinter IsQuick IsShortcut IsUpper L2Bin LastKey LastRec Left Len LenNum ListBDefCo ListBox Lock Log Lower LTrim LUpdate MakeDir Max MaxCol MaxRow MCol MDblClk MemoEdit MemoLine MemoRead Memory MemoTran MemoWrit MemVarBlock MenuDefCol MenuItem MenuModal MHide Min MLCount MLCToPos MLeftDown MLPos MMiddleDown Mod Month MPosToLC MPresent MRestState MRightDown MRow MSaveState MSetBounds MSetCursor MSetPos MShow NationMsg NetErr NetName NextKey NoSnow ordBagClear ordBagExt ordBagName ordCondSet ordCount ordCreate ordCustom ordDescend ordDestroy ordFindRec ordFor ordIsUnique ordKey ordKeyAdd ordKeyCount ordKeyDel ordKeyGoto ordKeyNo ordKeyRelPos ordKeyVal ordListAdd ordListCle ordListClear ordListReb ordListRebuild ordName ordNumber ordScope ordSetFocu ordSetFocus ordSetRela ordSetRelation ordSkipRaw ordSkipUnique ordWildSeek OS OutErr OutStd Pad PadC PadL PadR PCol PCount Popup ProcFile ProcLine ProcName PRow PushButton PValue QOut QQOut RadGrDefCo RadioButto RadioButton RadioGroup RadItDefCo RangeCheck RAt rddInfo rddList rddName rddRegister rddSetDefa rddSetDefault RDDSYS rdd_Count rdd_Info rdd_Name ReadExit ReadFormat ReadInsert ReadKey ReadKill ReadModal ReadStats ReadUpdated ReadVar RecCount RecNo RecSize Replicate RestScreen Right RLock Round Row RTrim SaveScreen Scroll ScrollBar SDF Seconds Secs Select Set SetBlink SetCancel SetClrPair SetColor SetCursor SetKey SetMode SetPos SetPosBS SetPRC SetTypeahead ShowGetMsg ShowMsg SIXCDX SoundEx Space Sqrt SToD Str StrTran StrZero Stuff SubStr sxChar sxDate sxLog sxNum sx_AutoOpen sx_AutoShare sx_Blob2File sx_Chill sx_ClearOrder sx_ClrScope sx_Compress sx_dbCreate sx_DbfDecrypt sx_DbfEncrypt sx_Decompress sx_Decrypt sx_DefTrigger sx_Descend sx_DToP sx_Encrypt sx_Error sx_FCompress sx_FDecompress sx_File2Blob sx_FileOrder sx_FindRec sx_FNameParser sx_Freeze sx_GetLocks sx_IDType sx_IndexCount sx_IndexName sx_IndexType sx_IniHeader sx_IsDBT sx_IsFLocked sx_IsLocked sx_IsMyROX sx_IsReadonly sx_IsReindex sx_IsROXLock sx_IsSem sx_IsShared sx_I_IndexName sx_I_TagName sx_KeyAdd sx_KeyCount sx_KeyData sx_KeyDrop sx_KeyGoto sx_KeyNo sx_KeySincluded sx_KeySkip sx_KillSem sx_KillTag sx_LockRetry sx_MakeSem sx_MemoBlk sx_MemoExt sx_MemoPack sx_PToD sx_Rlock sx_Rollback sx_ROXLock sx_ROXUnlock sx_SeekLast sx_SetFileOrd sx_SetMemoBlock sx_SetPass sx_SetScope sx_SetTag sx_SetTrig sx_SetTrigger sx_SetTurbo sx_SkipUnique sx_SlimFast sx_SortOption sx_Step sx_StrXCheck sx_TableName sx_TableType sx_TagCount sx_TagInfo sx_TagNo sx_TagOrder sx_Tags sx_TagUnique sx_Thermometer sx_TurboArea sx_Unlock sx_Version sx_VFGet sx_VSigLen sx_Warm sx_WildMatch sx_WildSeek SYMBOL SYSINIT TApplyKey TBAddCol TBApplyKey TBBBlock TBClose TBColumn TBColumnNew TBCreate TBDelCol TBDisplay TBEditCell TBFBlock TBGoBot TBGoTop TBInsCol TBModal TBMouse TBReader TBrowse TBrowseDB TBrowseNew TBSBlock TBSkip Time Tone TopBar Transform Trim TString Type Updated Upper Used Val ValType Version Word Year _CHECKBOX_ _DBF _dtxCondSet _eInstVar _GetNumCol _IsGraphic _LISTBOX_ _NatMsgVer _NatSortVer _PUSHBUTT_ _RADIOGRP_ _SetVideoMode _sxOpenInit _sx_IniInit _sx_StrCompress _sx_StrDecompress __Accept __AcceptStr __AtClear __AtPrompt __Box __BoxD __BoxS __CapLength __CapMetrics __Caption __classAdd __classH __classInstance __className __classNew __classSel __Clear __clsAddFriend __clsAddMsg __clsAssocType __clsCntClasses __clsDelMsg __clsGetProperties __clsInst __clsInstSuper __clsLock __clsLockDef __clsModMsg __clsMsgType __clsNew __clsParent __clsPreallocate __clsSyncSignal __clsSyncWait __clsUnlockDef __cls_CntClsData __cls_CntData __cls_CntShrData __cls_DecData __cls_IncData __CopyFile __dbApp __dbAppend __dbArrang __dbArrange __dbClearIndex __dbClearRelation __dbClose __dbClosearea __dbCommit __dbCommitAll __dbContinue __dbCopy __dbCopySt __dbCopyStruct __dbCopyXS __dbCopyXStruct __dbCreate __dbCreatIndex __dbDelete __dbDelim __dbgInvokeDebug __dbGoBottom __dbGoto __dbGoTop __dbgProcLevel __dbgVMLocalList __dbgVMParLList __dbgVMStkGCount __dbgVMStkGList __dbgVMStkLCount __dbgVMStkLList __dbgVMVarGGet __dbgVMVarGList __dbgVMVarGSet __dbgVMVarLGet __dbgVMVarLSet __dbgVMVarSGet __dbgVMVarSLen __dbgVMVarSList __dbgVMVarSSet __dbJoin __dbList __dbLocate __dbOpenSD __dbOpenSDF __dbPack __dbRecall __dbReindex __dbSDF __dbSeek __dbSelect __dbSetFilter __dbSetFound __dbSetIndex __dbSetLocate __dbSetOrder __dbSetRelation __dbSkip __dbSkipper __dbSort __dbSQL __dbStructFilter __dbTotal __dbTrans __dbTransRec __dbUnlAll __dbUnlock __dbUpdate __dbUse __dbZap __defaultNIL __DefPath __Dir __dynSCount __dynSGetIndex __dynSGetName __dynSGetPRF __dynSIsFun __dynSN2Ptr __dynSN2Sym __dynSP2Name __eInstVar52 __eInstVar53 __Eject __errInHandler __errRT_BASE __errRT_SBASE __FLedit __Get __GetA __GetListActive __GetListLast __GetListSetActive __GetMessage __GetMsgPrf __GUIColor __HBArray __HBBlock __HBCharacter __HBDate __hbdoc_DirLastModified __hbdoc_FilterOut __hbdoc_FromSource __hbdoc_LoadDir __hbdoc_LoadHBD __hbdoc_SaveHBD __hbdoc_ToSource __HBHash __HBLogical __HBNil __HBNumeric __HBPointer __HBSymbol __HBTimestamp __HBVMInit __hb_langSelect __i18n_hashJoin __i18n_hashTable __i18n_potArrayJoin __i18n_potArrayLoad __i18n_potArraySave __i18n_potArrayToHash __i18n_potArrayTrans __Input __itemSetRef __Keyboard __KillRead __LabelForm __MClear __MenuTo __MIColumn __MIRow __MRelease __MRestore __MSave __mvClear __mvDbgInfo __mvExist __mvGet __mvPrivate __mvPublic __mvPut __mvRelease __mvRestore __mvSave __mvScope __mvSetBase __mvXRelease __mxRelease __natIsAffirm __natIsNegative __natMsg __natMsgVer __natSortVer __NoNoAlert __objAddData __objAddInline __objAddMethod __objClone __objDelData __objDelInline __objDelMethod __objDerivedFrom __objGetClsName __objGetMethodList __objGetMsgList __objGetProperties __objGetValueList __objHasData __objHasMethod __objHasMsg __objHasMsgAssigned __objModInline __objModMethod __objSendMsg __objSetClass __objSetValueList __opCount __opGetPrf __pp_AddRule __pp_Init __pp_Path __pp_Process __pp_Reset __pp_StdRules __QQPub __Quit __QuitCancel __rddPreallocate __ReportForm __Run __Sender __SetCentury __SetFormat __SetFunction __SetHelpK __SetProfiler __TextRestore __TextSave __TracePrgCalls __TypeFile __vmItemID __Wait __wapi_GetACP __wapi_GetOEMCP __XHelp __XRestScreen __XSaveGetAttr __XSaveGetChar __XSaveGetColor'; + + var keywords = 'IF ELSE ELSEIF END ENDIF DO WHILE ENDDO WITH CASE OTHERWISE ENDCASE BEGIN ANNOUNCE REQUEST THREAD DYNAMIC EXTERNAL '+ + 'FUNCTION PROCEDURE RETURN CLASS ENDCLASS METHOD DATA LOCAL PRIVATE PUBLIC STATIC FIELD MEMVAR PARAMETERS DECLARE '+ + 'ACCEPT APPEND AVERAGE CLEAR CLOSE COMMIT CONTINUE COPY COUNT CREATE DEFAULT '+ + 'DELETE DISPLAY EJECT ERASE EXIT FOR GO GOTO INDEX INIT INPUT JOIN KEYBOARD LABEL LIST LOCATE '+ + 'LOOP MENU NEXT PACK PRINT QUIT READ RECALL REINDEX RELEASE RENAME REQUEST REPLACE RESTORE '+ + 'RUN SAVE SEEK SELECT SET SKIP SORT STORE SUM TEXT TOTAL UNLOCK USE VAR WAIT ZAP'; + + var constants = '__FILE__ __LINE__ __HARBOUR__'; + + this.regexList = [ + { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments + { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments + { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings + { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings + { regex: /\$\w+/g, css: 'variable' }, // variables + { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // common functions + { regex: new RegExp(this.getKeywords(constants), 'gmi'), css: 'constants' }, // constants + { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword + ]; + + this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags); + }; + + Brush.prototype = new SyntaxHighlighter.Highlighter(); + Brush.aliases = ['harbour']; + + SyntaxHighlighter.brushes.Php = Brush; + + // CommonJS + typeof(exports) != 'undefined' ? exports.Brush = Brush : null; +})(); diff --git a/harbour/website/js/shCore.js b/harbour/website/js/shCore.js new file mode 100644 index 0000000000..4214763d24 --- /dev/null +++ b/harbour/website/js/shCore.js @@ -0,0 +1,1721 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/SyntaxHighlighter + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/SyntaxHighlighter/donate.html + * + * @version + * 3.0.83 (July 02 2010) + * + * @copyright + * Copyright (C) 2004-2010 Alex Gorbatchev. + * + * @license + * Dual licensed under the MIT and GPL licenses. + */ +// +// Begin anonymous function. This is used to contain local scope variables without polutting global scope. +// +var SyntaxHighlighter = function() { + +// CommonJS +if (typeof(require) != 'undefined' && typeof(XRegExp) == 'undefined') +{ + XRegExp = require('XRegExp').XRegExp; +} + +// Shortcut object which will be assigned to the SyntaxHighlighter variable. +// This is a shorthand for local reference in order to avoid long namespace +// references to SyntaxHighlighter.whatever... +var sh = { + defaults : { + /** Additional CSS class names to be added to highlighter elements. */ + 'class-name' : '', + + /** First line number. */ + 'first-line' : 1, + + /** + * Pads line numbers. Possible values are: + * + * false - don't pad line numbers. + * true - automaticaly pad numbers with minimum required number of leading zeroes. + * [int] - length up to which pad line numbers. + */ + 'pad-line-numbers' : false, + + /** Lines to highlight. */ + 'highlight' : null, + + /** Title to be displayed above the code block. */ + 'title' : null, + + /** Enables or disables smart tabs. */ + 'smart-tabs' : true, + + /** Gets or sets tab size. */ + 'tab-size' : 4, + + /** Enables or disables gutter. */ + 'gutter' : true, + + /** Enables or disables toolbar. */ + 'toolbar' : true, + + /** Enables quick code copy and paste from double click. */ + 'quick-code' : true, + + /** Forces code view to be collapsed. */ + 'collapse' : false, + + /** Enables or disables automatic links. */ + 'auto-links' : true, + + /** Gets or sets light mode. Equavalent to turning off gutter and toolbar. */ + 'light' : false, + + 'html-script' : false + }, + + config : { + space : ' ', + + /** Enables use of tags. */ + scriptScriptTags : { left: /(<|<)\s*script.*?(>|>)/gi, right: /(<|<)\/\s*script\s*(>|>)/gi } + }, + + toolbar: { + /** + * Generates HTML markup for the toolbar. + * @param {Highlighter} highlighter Highlighter instance. + * @return {String} Returns HTML markup. + */ + getHtml: function(highlighter) + { + var html = '
', + items = sh.toolbar.items, + list = items.list + ; + + function defaultGetHtml(highlighter, name) + { + return sh.toolbar.getButtonHtml(highlighter, name, sh.config.strings[name]); + }; + + for (var i = 0; i < list.length; i++) + html += (items[list[i]].getHtml || defaultGetHtml)(highlighter, list[i]); + + html += '
'; + + return html; + }, + + /** + * Generates HTML markup for a regular button in the toolbar. + * @param {Highlighter} highlighter Highlighter instance. + * @param {String} commandName Command name that would be executed. + * @param {String} label Label text to display. + * @return {String} Returns HTML markup. + */ + getButtonHtml: function(highlighter, commandName, label) + { + return '' + label + '' + ; + }, + + /** + * Event handler for a toolbar anchor. + */ + handler: function(e) + { + var target = e.target, + className = target.className || '' + ; + + function getValue(name) + { + var r = new RegExp(name + '_(\\w+)'), + match = r.exec(className) + ; + + return match ? match[1] : null; + }; + + var highlighter = getHighlighterById(findParentElement(target, '.syntaxhighlighter').id), + commandName = getValue('command') + ; + + // execute the toolbar command + if (highlighter && commandName) + sh.toolbar.items[commandName].execute(highlighter); + + // disable default A click behaviour + e.preventDefault(); + }, + + /** Collection of toolbar items. */ + items : { + // Ordered lis of items in the toolbar. Can't expect `for (var n in items)` to be consistent. + list: ['expandSource', 'help'], + + expandSource: { + getHtml: function(highlighter) + { + if (highlighter.getParam('collapse') != true) + return ''; + + var title = highlighter.getParam('title'); + return sh.toolbar.getButtonHtml(highlighter, 'expandSource', title ? title : sh.config.strings.expandSource); + }, + + execute: function(highlighter) + { + var div = getHighlighterDivById(highlighter.id); + removeClass(div, 'collapsed'); + } + }, + + /** Command to display the about dialog window. */ + help: { + execute: function(highlighter) + { + var wnd = popup('', '_blank', 500, 250, 'scrollbars=0'), + doc = wnd.document + ; + + doc.write(sh.config.strings.aboutDialog); + doc.close(); + wnd.focus(); + } + } + } + }, + + /** + * Finds all elements on the page which should be processes by SyntaxHighlighter. + * + * @param {Object} globalParams Optional parameters which override element's + * parameters. Only used if element is specified. + * + * @param {Object} element Optional element to highlight. If none is + * provided, all elements in the current document + * are returned which qualify. + * + * @return {Array} Returns list of { target: DOMElement, params: Object } objects. + */ + findElements: function(globalParams, element) + { + var elements = element ? [element] : toArray(document.getElementsByTagName(sh.config.tagName)), + conf = sh.config, + result = [] + ; + + // support for + +
-
+
-
- - + +
+ @@ -44,7 +44,7 @@
- +
 
- + @@ -168,7 +168,7 @@ Generating C source output to 'foo.c'... Done.
-
How to Build on Linux
In the last phase of install process if bash shell is available in the system then few bash scripts are created to make compiling and linking with Harbour a little easier. There are compiler and linker wrappers called "hbcc", "hbcmp", "hblnk" and "hbmk".  
+
diff --git a/harbour/website/samples/HowToBuildOnWindows.html b/harbour/website/samples/HowToBuildOnWindows.html index 7895139acc..7ec929bc19 100644 --- a/harbour/website/samples/HowToBuildOnWindows.html +++ b/harbour/website/samples/HowToBuildOnWindows.html @@ -3,28 +3,28 @@ Harbour Project - Samples -> How to Build on Windows - - + +
-
+
-
- - + +
+ @@ -44,7 +44,7 @@
- +
 
- + @@ -156,7 +156,7 @@ Generating C source output to 'foo.c'... Done.
-

How to Build on Windows

In the BIN folder where your Harbor was installed, is the file HBMK.BAT. This batch file will help you compile your applications in a Microsoft.  
+
diff --git a/harbour/website/samples/array16.html b/harbour/website/samples/array16.html index 4d970153d2..298308a6fc 100644 --- a/harbour/website/samples/array16.html +++ b/harbour/website/samples/array16.html @@ -3,27 +3,27 @@ Harbour Project - Samples -> array16 - - + +
-
+
-
- - + +
+ @@ -43,7 +43,7 @@
- +
 
- + @@ -99,7 +99,7 @@ array16 sample running on Windows Vista
- + @@ -115,7 +115,7 @@ array16 sample running on Windows Vista
-
Multidimensional arrays demo
This test demonstrates the many ways to access items in an array.
 To learn how to compile/link this example see our specific section on this link.To learn how to compile/link this example see our specific section on this link.  
 
+
diff --git a/harbour/website/samples/array16.prg.html b/harbour/website/samples/array16.prg.html index e96fb5d914..aee09c3eef 100644 --- a/harbour/website/samples/array16.prg.html +++ b/harbour/website/samples/array16.prg.html @@ -1,95 +1,92 @@ - -array16.prg - - - - - -
// Harbour multidimensional arrays support
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+
+
 
-function Main()
+
+
+
+
diff --git a/harbour/website/samples/arreval.html b/harbour/website/samples/arreval.html
index 2f33385565..fb8ef3a5f4 100644
--- a/harbour/website/samples/arreval.html
+++ b/harbour/website/samples/arreval.html
@@ -3,27 +3,27 @@
 
 
 Harbour Project - Samples -> arreval
-
-
+
+
 
 
-
+
-
- - + +
+ @@ -43,7 +43,7 @@
- +
 
- + @@ -99,7 +99,7 @@ arreval sample running on Windows
- + @@ -115,7 +115,7 @@ arreval sample running on Windows
-
AEval() sample
Simple AEval() test program. Note also that the code-block uses a second parameter to identify the position of the item currently in use.
 To learn how to compile/link this example see our specific section on this link.To learn how to compile/link this example see our specific section on this link.  
 
+
diff --git a/harbour/website/samples/arreval.prg.html b/harbour/website/samples/arreval.prg.html index 7edccb9227..2a75a158d5 100644 --- a/harbour/website/samples/arreval.prg.html +++ b/harbour/website/samples/arreval.prg.html @@ -1,35 +1,28 @@ - -arreval.prg - - - - - -
function Main()
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+
+
 
-   local a := { 100, 200, 300 }
+
+
+
+
diff --git a/harbour/website/samples/begin.html b/harbour/website/samples/begin.html
index 3de677f669..0b4a5c3433 100644
--- a/harbour/website/samples/begin.html
+++ b/harbour/website/samples/begin.html
@@ -3,27 +3,27 @@
 
 
 Harbour Project - Samples -> begin
-
-
+
+
 
 
-
+
-
- - + +
+ @@ -43,7 +43,7 @@
- +
 
- + @@ -88,7 +88,7 @@ - + @@ -104,7 +104,7 @@ -
Begin Sequence support
This files demonstrates the use of BEGIN/RECOVER/END SEQUENCE and BREAK statement in Harbour.
 To learn how to compile/link this example see our specific section on this link.To learn how to compile/link this example see our specific section on this link.  
 
+
diff --git a/harbour/website/samples/begin.prg.html b/harbour/website/samples/begin.prg.html index bbdbb0ff4f..c063bce8b8 100644 --- a/harbour/website/samples/begin.prg.html +++ b/harbour/website/samples/begin.prg.html @@ -1,155 +1,147 @@ - -begin.prg - - - - - -
// This files demonstrates the use of BEGIN/RECOVER/END SEQUENCE
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+
+
+
+
 
-RETURN
-
-
+ + diff --git a/harbour/website/samples/byref.html b/harbour/website/samples/byref.html index 3773c5688b..04499c6684 100644 --- a/harbour/website/samples/byref.html +++ b/harbour/website/samples/byref.html @@ -3,27 +3,27 @@ Harbour Project - Samples -> byref - - + +
-
+
-
- - + +
+ @@ -43,7 +43,7 @@
- +
 
- + @@ -99,7 +99,7 @@ - + @@ -115,7 +115,7 @@ -
Manipulating variables by reference.
This example shows how you can pass variables as a reference and change its values.
 To learn how to compile/link this example see our specific section on this link.To learn how to compile/link this example see our specific section on this link.  
 
+
diff --git a/harbour/website/samples/byref.prg.html b/harbour/website/samples/byref.prg.html index b4511bdf64..e48b21c9c5 100644 --- a/harbour/website/samples/byref.prg.html +++ b/harbour/website/samples/byref.prg.html @@ -1,81 +1,78 @@ - -byref.prg - - - - - -
// Managing variables by reference
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+
+
 
-function Main()
-STATIC s:=10
+
+
+
+
diff --git a/harbour/website/samples/codebl.html b/harbour/website/samples/codebl.html
index 396f7269bd..63e40ad0ec 100644
--- a/harbour/website/samples/codebl.html
+++ b/harbour/website/samples/codebl.html
@@ -3,27 +3,27 @@
 
 
 Harbour Project - Samples -> codebl
-
-
+
+
 
 
-
+
-
- - + +
+ @@ -43,7 +43,7 @@
- +
 
- + @@ -88,7 +88,7 @@ - + @@ -104,7 +104,7 @@ -
Codeblock support sample
Harbour codeblocks demonstration.
 To learn how to compile/link this example see our specific section on this link.To learn how to compile/link this example see our specific section on this link.  
 
+
diff --git a/harbour/website/samples/codebl.prg.html b/harbour/website/samples/codebl.prg.html index 7614e8f07c..be3b0c7d11 100644 --- a/harbour/website/samples/codebl.prg.html +++ b/harbour/website/samples/codebl.prg.html @@ -1,193 +1,209 @@ - -codebl.prg - - - - - -
STATIC cbStatic
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+
+
 
-Function Main()
-Local a := TestBlocks()
-LOCAL cb
+
+
+
+
diff --git a/harbour/website/samples/codebloc.html b/harbour/website/samples/codebloc.html
index ab787fb816..ea47a6f5fa 100644
--- a/harbour/website/samples/codebloc.html
+++ b/harbour/website/samples/codebloc.html
@@ -3,27 +3,27 @@
 
 
 Harbour Project - Samples -> codebloc
-
-
+
+
 
 
-
+
-
- - + +
+ @@ -43,7 +43,7 @@
- +
 
- + @@ -89,7 +89,7 @@ - + @@ -105,7 +105,7 @@ -
Codeblock support sample
Harbour codeblocks test sample.
 To learn how to compile/link this example see our specific section on this link.To learn how to compile/link this example see our specific section on this link.  
 
+
diff --git a/harbour/website/samples/codebloc.prg.html b/harbour/website/samples/codebloc.prg.html index 85a017d9eb..262cc91eb1 100644 --- a/harbour/website/samples/codebloc.prg.html +++ b/harbour/website/samples/codebloc.prg.html @@ -1,143 +1,145 @@ - -codebloc.prg - - - - - -
// codeblocks test
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+
+
 
-function Main()
-   local B := "this will never print"
-   local a := {| b, c | OutStd( "I am a codeblock" + b + c ) }
-   local d
-   local de
-   local ar := { 1, 2 }
-   local crlf:=CHR(13)+chr(10)
-   local YY, X
-   local x1, x2
+
+
+
+
diff --git a/harbour/website/samples/dates3.html b/harbour/website/samples/dates3.html
index d0c8cbedcf..70712a91b0 100644
--- a/harbour/website/samples/dates3.html
+++ b/harbour/website/samples/dates3.html
@@ -3,27 +3,27 @@
 
 
 Harbour Project - Samples -> dates3
-
-
+
+
 
 
-
+
-
- - + +
+ @@ -43,7 +43,7 @@
- +
 
- + @@ -91,7 +91,7 @@ - + @@ -107,7 +107,7 @@ -
Manipulation of date values
This example demonstrates the manipulation of date values and the use of SET (_SET_DATEFORMAT) to format the return of function Date().
 To learn how to compile/link this example see our specific section on this link.To learn how to compile/link this example see our specific section on this link.  
 
+
diff --git a/harbour/website/samples/dates3.prg.html b/harbour/website/samples/dates3.prg.html index c725ecea3c..ca26a13de4 100644 --- a/harbour/website/samples/dates3.prg.html +++ b/harbour/website/samples/dates3.prg.html @@ -1,73 +1,70 @@ - -dates3.prg - - - - - -
// Testing Harbour dates management.
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+
+
 
-#include "set.ch"
+
+
+
+
diff --git a/harbour/website/samples/foreach.html b/harbour/website/samples/foreach.html
index 2d4b63fa51..739982b061 100644
--- a/harbour/website/samples/foreach.html
+++ b/harbour/website/samples/foreach.html
@@ -3,27 +3,27 @@
 
 
 Harbour Project - Samples -> foreach
-
-
+
+
 
 
-
+
-
- - + +
+ @@ -43,7 +43,7 @@
- +
 
- + @@ -99,7 +99,7 @@ foreach sample running on Windows
- + @@ -115,7 +115,7 @@ foreach sample running on Windows
-
FOR EACH example
This example demonstrates how to use the FOR EACH command. FOR EACH iterates with elements of data types that can be seen as a collection such as arrays, strings or objects.
 To learn how to compile/link this example see our specific section on this link.To learn how to compile/link this example see our specific section on this link.  
 
+
diff --git a/harbour/website/samples/foreach.prg.html b/harbour/website/samples/foreach.prg.html index d4d3535330..058c84ea70 100644 --- a/harbour/website/samples/foreach.prg.html +++ b/harbour/website/samples/foreach.prg.html @@ -1,163 +1,163 @@ - -foreach.prg - - - - - -
PROCEDURE MAIN()
-LOCAL A:={ "one  ", "two  ", "three" }
-LOCAL AA:={ "AA-one  ", "AA-two  ", "AA-three", "AA-four " }
-LOCAL c:="abcdefghij"
-LOCAL enum:="b"
-LOCAL bb, cc
-LOCAL i
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+
+
 
-/*
-   test(@a,b)
-   test(a,@b)
-   test(@a,@b)
-*/
-   ? "========================================================"
-   ? "before loop: ENUM=",ENUM
-   ? 'before loop: a[1]=',a[1], 'a[2]=',a[2], 'a[3]=',a[3]
-   FOR EACH enum IN A
-      ? "start: ENUM=", ENUM
-      IF ENUM = 'two'
-         ENUM := UPPER( ENUM )
-      ENDIF
-      ? "end:   ENUM=", ENUM, "| index:", ENUM:__enumIndex, "| value:", ENUM:__enumValue, "| base: ", VALTYPE(ENUM:__enumBase)
-   NEXT
-   ? "after loop ENUM=", ENUM
-   ? 'after loop: a[1]=',a[1], 'a[2]=',a[2], 'a[3]=',a[3]
-   ? "-----------------"
-   ?
-   inkey(0)
+
+
+
+
diff --git a/harbour/website/samples/function.cfm.html b/harbour/website/samples/function.cfm.html
index 6eff084f9f..59faf9fa12 100644
--- a/harbour/website/samples/function.cfm.html
+++ b/harbour/website/samples/function.cfm.html
@@ -1,75 +1,71 @@
-
-Sem título 2
-
-
-
-
-
-
<html>
-<head>
-<meta http-equiv="Content-Type"
-content="text/html; charset=utf-8">
-<title>Harbour function task list</title>
-</head>
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+
+
 
-<body bgcolor="#FFFFFF">
+
+
+
+
diff --git a/harbour/website/samples/hello.html b/harbour/website/samples/hello.html
index 13d5be61c1..07c1186e3b 100644
--- a/harbour/website/samples/hello.html
+++ b/harbour/website/samples/hello.html
@@ -3,27 +3,27 @@
 
 
 Harbour Project - Samples -> hello
-
-
+
+
 
 
-
+
-
- - + +
+ @@ -43,7 +43,7 @@
- +
 
- + @@ -101,7 +101,7 @@ - + @@ -117,7 +117,7 @@ -
Hello world
A single Hello World with a typical welcome message.
 To learn how to compile/link this example see our specific section on this link.To learn how to compile/link this example see our specific section on this link.  
 
+
diff --git a/harbour/website/samples/hello.prg.html b/harbour/website/samples/hello.prg.html index cd3e99ca86..a9bcf75ca5 100644 --- a/harbour/website/samples/hello.prg.html +++ b/harbour/website/samples/hello.prg.html @@ -1,34 +1,28 @@ - -hello.prg - - - - - -
// Typical welcome message
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+
+
 
-function Main()
+
+
+
+
diff --git a/harbour/website/samples/initexit.html b/harbour/website/samples/initexit.html
index fadfa4686f..3234ffa2df 100644
--- a/harbour/website/samples/initexit.html
+++ b/harbour/website/samples/initexit.html
@@ -3,27 +3,27 @@
 
 
 Harbour Project - Samples -> initexit
-
-
+
+
 
 
-
+
-
- - + +
+ @@ -43,7 +43,7 @@
- +
 
- + @@ -99,7 +99,7 @@ - + @@ -115,7 +115,7 @@ -
INIT and EXIT functions support
Testing INIT and EXIT functions and initialization of static variables.
 To learn how to compile/link this example see our specific section on this link.To learn how to compile/link this example see our specific section on this link.  
 
+
diff --git a/harbour/website/samples/initexit.prg.html b/harbour/website/samples/initexit.prg.html index caf8bbf470..b356348ac2 100644 --- a/harbour/website/samples/initexit.prg.html +++ b/harbour/website/samples/initexit.prg.html @@ -1,84 +1,81 @@ - -initexit.prg - - - - - -
// Testing Harbour INIT and EXIT functions and initialization 
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+
+
+
+
+
+
+
diff --git a/harbour/website/samples/longdev.html b/harbour/website/samples/longdev.html
index d05126ae65..d717439e4f 100644
--- a/harbour/website/samples/longdev.html
+++ b/harbour/website/samples/longdev.html
@@ -3,27 +3,27 @@
 
 
 Harbour Project - Samples -> longdev
-
-
+
+
 
 
-
+
-
- - + +
+ @@ -43,7 +43,7 @@
- +
 
- + - + @@ -118,7 +118,7 @@ longdev application running on Linux
-
Testing long string handling support
Testing Harbour long string handling with device output.
@@ -102,7 +102,7 @@ longdev application running on Linux
 To learn how to compile/link this example see our specific section on this link.To learn how to compile/link this example see our specific section on this link.  
 
+
diff --git a/harbour/website/samples/longdev.prg.html b/harbour/website/samples/longdev.prg.html index 3569e945bc..23cf8d2539 100644 --- a/harbour/website/samples/longdev.prg.html +++ b/harbour/website/samples/longdev.prg.html @@ -1,64 +1,59 @@ - -longdev.prg - - - - - -
// Testing Harbour long string handling with device output.
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+
+
+
+
+
+
+
diff --git a/harbour/website/samples/mousetst.html b/harbour/website/samples/mousetst.html
index ffecfdbcfa..c335543a89 100644
--- a/harbour/website/samples/mousetst.html
+++ b/harbour/website/samples/mousetst.html
@@ -3,27 +3,27 @@
 
 
 Harbour Project - Samples -> mousetst
-
-
+
+
 
 
-
+
-
- - + +
+ @@ -43,7 +43,7 @@
- +
 
- + @@ -102,7 +102,7 @@ mousetst sample running on Linux
- + @@ -118,7 +118,7 @@ mousetst sample running on Linux
-
Mouse sample support
Test mouse for Harbour Project.
 To learn how to compile/link this example see our specific section on this link.To learn how to compile/link this example see our specific section on this link.  
 
+
diff --git a/harbour/website/samples/mousetst.prg.html b/harbour/website/samples/mousetst.prg.html index e26c5dc962..0be02d246f 100644 --- a/harbour/website/samples/mousetst.prg.html +++ b/harbour/website/samples/mousetst.prg.html @@ -1,289 +1,272 @@ - -mousetst.prg - - - - - -
/*
- * Test mouse for Harbour Project
-*/
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+
+
 
-#include "inkey.ch"
+
 
-         CASE nKey == K_RBUTTONDOWN
-            * Right mouse button was pushed
-            @ nR+2,nC+15 SAY "¦¦¦"
-            @ nR+3,nC+15 SAY "¦¦¦"
-            @ nR+6,nC+15 SAY "Down"
-            nPress ++
-
-         CASE nKey == K_RBUTTONUP
-            * Right mouse button was released
-            @ nR+2,nC+15 SAY "   "
-            @ nR+3,nC+15 SAY "   "
-            @ nR+6,nC+15 SAY "Up  "
-
-         CASE nKey == K_LDBLCLK
-            * "The left mouse button was double-clicked."
-            @ 13, 22 SAY "Pass"
-
-         CASE nKey == K_RDBLCLK
-            * "The right mouse button was double-clicked."
-            @ 14, 22 SAY "Pass"
-
-         OTHERWISE
-            @ MAXROW(),20 SAY "A keyboard key was pressed: "
-            @ MAXROW(),48 SAY nKey
-            @ MAXROW(),58 SAY iif( nKey >= 32 .AND. nKey <= 255, CHR( nKey ), "" )
-      END CASE
-
-      IF nPress > 6
-         EXIT
-      ENDIF
-
-   END WHILE
-
-   @ MAXROW()-3,20 SAY SPACE(50)
-   @ 12, 22 SAY "Pass"
-
-   SET CURSOR ON
-
-   @ 20,01 SAY "MOUSE TEST FINISH!"
-   ?
-RETURN
-
-
-
-
-PROCEDURE CHECKEXIT()
-IF ! MINRECT( MAXROW()-2, MAXCOL()-11, MAXROW(), MAXCOL() )
-    RETURN
-ENDIF
-SET CURSOR ON
-CLS
-? "MOUSE TEST FINISH!"
-?
-QUIT
-
-
+ + diff --git a/harbour/website/samples/onidle.html b/harbour/website/samples/onidle.html index 38168d8241..4595d885d6 100644 --- a/harbour/website/samples/onidle.html +++ b/harbour/website/samples/onidle.html @@ -3,27 +3,27 @@ Harbour Project - Samples -> onidle - - + +
-
+
-
- - + +
+ @@ -43,7 +43,7 @@
- +
 
- + @@ -99,7 +99,7 @@ onidle sample running on Windows
- + @@ -115,7 +115,7 @@ onidle sample running on Windows
-
OnIdle sample
This demo demonstrates how to add various tasks into background in Harbour.
 To learn how to compile/link this example see our specific section on this link.To learn how to compile/link this example see our specific section on this link.  
 
+
diff --git a/harbour/website/samples/onidle.prg.html b/harbour/website/samples/onidle.prg.html index fe24d7c993..b5044c892b 100644 --- a/harbour/website/samples/onidle.prg.html +++ b/harbour/website/samples/onidle.prg.html @@ -1,98 +1,94 @@ - -onidle.prg - - - - - -
#include "hbmemory.ch"
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+
+
 
-FUNCTION MAIN
-LOCAL nH1, nH2, nH3, nH4
-LOCAL n:=0
-LOCAL aSign:={"|", "/", "-", "\" }
-LOCAL nPrev:=SECONDS()
+
+
+
+
diff --git a/harbour/website/samples/osshell.html b/harbour/website/samples/osshell.html
index 2644776717..0fc86ac02d 100644
--- a/harbour/website/samples/osshell.html
+++ b/harbour/website/samples/osshell.html
@@ -3,27 +3,27 @@
 
 
 Harbour Project - Samples -> osshell
-
-
+
+
 
 
-
+
-
- - + +
+ @@ -43,7 +43,7 @@
- +
 
- + @@ -105,7 +105,7 @@ to forcing the beginning of a new shell.
- + @@ -121,7 +121,7 @@ to forcing the beginning of a new shell.
-
Run command: About to shell to DOS
This program uses geten () and the environment variable COMSPEC to start a new shell.
 To learn how to compile/link this example see our specific section on this link.To learn how to compile/link this example see our specific section on this link.  
 
+
diff --git a/harbour/website/samples/osshell.prg.html b/harbour/website/samples/osshell.prg.html index e6194b5098..81f7a8e689 100644 --- a/harbour/website/samples/osshell.prg.html +++ b/harbour/website/samples/osshell.prg.html @@ -1,53 +1,45 @@ - -dosshell.prg - - - - - -
//
-// DosShell
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+
+
+
+
+
+
+
diff --git a/harbour/website/samples/parseini.html b/harbour/website/samples/parseini.html
index dd0fa4373d..a8b373f5d7 100644
--- a/harbour/website/samples/parseini.html
+++ b/harbour/website/samples/parseini.html
@@ -3,27 +3,27 @@
 
 
 Harbour Project - Samples -> parseini
-
-
+
+
 
 
-
+
-
- - + +
+ @@ -43,7 +43,7 @@
- +
 
- + @@ -103,7 +103,7 @@ - + @@ -119,7 +119,7 @@ -
Test for Ini file reading/writing
Test for Ini files reading/writing using native Harbour functions.
 To learn how to compile/link this example see our specific section on this link.To learn how to compile/link this example see our specific section on this link.  
 
+
diff --git a/harbour/website/samples/parseini.ini.html b/harbour/website/samples/parseini.ini.html index 226c6cdd13..20e5bf5693 100644 --- a/harbour/website/samples/parseini.ini.html +++ b/harbour/website/samples/parseini.ini.html @@ -1,59 +1,55 @@ - -parseini.ini - - - - -
; Demo INI file
-;
-; (showing another style of comment here )
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+
+
 
-# This is the MAIN section
+
+
+
+
diff --git a/harbour/website/samples/parseini.prg.html b/harbour/website/samples/parseini.prg.html
index 8c5be2f971..a27ab2fe95 100644
--- a/harbour/website/samples/parseini.prg.html
+++ b/harbour/website/samples/parseini.prg.html
@@ -1,130 +1,200 @@
-
-parseini.prg
-
-
-
-
-
-
******************************************************************
-* Test for Ini file reading/writing
-*
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+
+
 
-PROCEDURE Main( cName )
-   LOCAL aIni, aSect
-   LOCAL cSection
-   LOCAL cKey
-   LOCAL nRow := 1
+
+
+
+
diff --git a/harbour/website/samples/switch.html b/harbour/website/samples/switch.html
index f06ee296db..9f4b6a7122 100644
--- a/harbour/website/samples/switch.html
+++ b/harbour/website/samples/switch.html
@@ -3,27 +3,27 @@
 
 
 Harbour Project - Samples -> switch
-
-
+
+
 
 
-
+
-
- - + +
+ @@ -43,7 +43,7 @@
- +
 
- + @@ -99,7 +99,7 @@ switch sample running on Windows
- + @@ -115,7 +115,7 @@ switch sample running on Windows
-
Switch support
This example demonstrates how to use the SWITCH to execute one or more blocks of statements.
 To learn how to compile/link this example see our specific section on this link.To learn how to compile/link this example see our specific section on this link.  
 
+
diff --git a/harbour/website/samples/switch.prg.html b/harbour/website/samples/switch.prg.html index 9e344e18e7..5766390569 100644 --- a/harbour/website/samples/switch.prg.html +++ b/harbour/website/samples/switch.prg.html @@ -1,142 +1,141 @@ - -switch.prg - - - - - -
#ifdef __XHARBOUR__  
-   #define OTHERWISE DEFAULT
-#endif   
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+
+
 
-PROCEDURE MAIN
-LOCAL a:=1
-PRIVATE b:="b"
+
+
+
+
diff --git a/harbour/website/samples/testbrdb.html b/harbour/website/samples/testbrdb.html
index 3bfd6b8d4a..192d4868fb 100644
--- a/harbour/website/samples/testbrdb.html
+++ b/harbour/website/samples/testbrdb.html
@@ -3,27 +3,27 @@
 
 
 Harbour Project - Samples -> testbrdb
-
-
+
+
 
 
-
+
-
- - + +
+ @@ -43,7 +43,7 @@
- +
 
- + @@ -92,7 +92,7 @@ - + @@ -108,7 +108,7 @@ -
Browse() function demo
Example to test Browse() function features.
 To learn how to compile/link this example see our specific section on this link.To learn how to compile/link this example see our specific section on this link.  
 
+
diff --git a/harbour/website/samples/testbrdb.prg.html b/harbour/website/samples/testbrdb.prg.html index 168001e092..e4d0e91aa5 100644 --- a/harbour/website/samples/testbrdb.prg.html +++ b/harbour/website/samples/testbrdb.prg.html @@ -1,41 +1,37 @@ - -testbrdb.prg - - - - - -
// Testing Browse()
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+
+
 
-function Main()
-   LOCAL cColor
+
+
+
+
diff --git a/harbour/website/samples/testbrw.html b/harbour/website/samples/testbrw.html
index bf5f0a6e57..57af553d8e 100644
--- a/harbour/website/samples/testbrw.html
+++ b/harbour/website/samples/testbrw.html
@@ -3,27 +3,27 @@
 
 
 Harbour Project - Samples -> testbrw
-
-
+
+
 
 
-
+
-
- - + +
+ @@ -43,7 +43,7 @@
- +
 
- + @@ -92,7 +92,7 @@ - + @@ -108,7 +108,7 @@ -
TBrowse() function demo
Harbour Class TBrowse and TBColumn sample.
 To learn how to compile/link this example see our specific section on this link.To learn how to compile/link this example see our specific section on this link.  
 
+
diff --git a/harbour/website/samples/testbrw.prg.html b/harbour/website/samples/testbrw.prg.html index 8754d423d8..21f02627b0 100644 --- a/harbour/website/samples/testbrw.prg.html +++ b/harbour/website/samples/testbrw.prg.html @@ -1,169 +1,164 @@ - -testbrw.prg - - - - - -
// Harbour Class TBrowse and TBColumn sample
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+
+
 
-#include "inkey.ch"
+
+
+
+
diff --git a/harbour/website/samples/testhtml.html b/harbour/website/samples/testhtml.html
index bd6f49db22..f947eebc4c 100644
--- a/harbour/website/samples/testhtml.html
+++ b/harbour/website/samples/testhtml.html
@@ -3,27 +3,27 @@
 
 
 Harbour Project - Samples -> testhtml
-
-
+
+
 
 
-
+
-
- - + +
+ @@ -43,7 +43,7 @@
- +
 
- + @@ -91,7 +91,7 @@ - + @@ -107,7 +107,7 @@ -
Harbour Test of a HTML-Generator class
This example demonstrates the possibility of working with Web pages using a custom CGI class.
 To learn how to compile/link this example see our specific section on this link.To learn how to compile/link this example see our specific section on this link.  
 
+
diff --git a/harbour/website/samples/testhtml.prg.html b/harbour/website/samples/testhtml.prg.html index b56b4f2c7c..ebce33d429 100644 --- a/harbour/website/samples/testhtml.prg.html +++ b/harbour/website/samples/testhtml.prg.html @@ -1,186 +1,150 @@ - -testhtml.prg - - - - - -
/*
-*
-*  Harbour Test of a HTML-Generator class.
-*
-*  1999/05/30  First implementation.
-*
-*              Tips: - Use ShowResults to make dynamic html (to test dynamic
-*                      results, put the exe file on CGI-BIN dir or equivalent);
-*                    - Use SaveToFile to make static html page
-*
-**/
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+
+
 
-STATIC s_cNewLine
+
+
+
+
diff --git a/harbour/website/samples/testidle.html b/harbour/website/samples/testidle.html
index cef9a8b1e1..23893e5b85 100644
--- a/harbour/website/samples/testidle.html
+++ b/harbour/website/samples/testidle.html
@@ -3,27 +3,27 @@
 
 
 Harbour Project - Samples -> testidle
-
-
+
+
 
 
-
+
-
- - + +
+ @@ -43,7 +43,7 @@
- +
 
- + @@ -99,7 +99,7 @@ testidle sample running on Windows
- + @@ -115,7 +115,7 @@ testidle sample running on Windows
-
OnIdle sample
This demo demonstrates how to add a new background task in Harbour.
 To learn how to compile/link this example see our specific section on this link.To learn how to compile/link this example see our specific section on this link.  
 
+
diff --git a/harbour/website/samples/testidle.prg.html b/harbour/website/samples/testidle.prg.html index 4c80af48bc..f20fb5682e 100644 --- a/harbour/website/samples/testidle.prg.html +++ b/harbour/website/samples/testidle.prg.html @@ -1,59 +1,51 @@ - -foreach.prg - - - - - -
// #include "set.ch" - Preset in pptable.c
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+
+
 
-PROCEDURE MAIN()
+
+
+
+
diff --git a/harbour/website/samples/tstmacro.html b/harbour/website/samples/tstmacro.html
index 4fdff80a49..c4f80acd73 100644
--- a/harbour/website/samples/tstmacro.html
+++ b/harbour/website/samples/tstmacro.html
@@ -3,27 +3,27 @@
 
 
 Harbour Project - Samples -> tstmacro
-
-
+
+
 
 
-
+
-
- - + +
+ @@ -43,7 +43,7 @@
- +
 
- + @@ -88,7 +88,7 @@ - + @@ -104,7 +104,7 @@ -
Dynamic code evalutation sample
This example demonstrates how you can use the macro feature present in Harbor in the same manner as was done in Clipper.
 To learn how to compile/link this example see our specific section on this link.To learn how to compile/link this example see our specific section on this link.  
 
+
diff --git a/harbour/website/samples/tstmacro.prg.html b/harbour/website/samples/tstmacro.prg.html index e11cec0ddd..5cdaeb03bc 100644 --- a/harbour/website/samples/tstmacro.prg.html +++ b/harbour/website/samples/tstmacro.prg.html @@ -1,188 +1,193 @@ - -tstmacro.prg - - - - - -
#include "hbclass.ch"
+
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+
+
 
-MEMVAR cStr, cStr_1, cVar_1, aVar, oVar, OtherVar, SomeVar, Private
-MEMVAR cMainPrivate, GlobalPrivate, BornInRunTimeVar, Public
+
+
+
+