#-------------------------------------------------------------------- function Help() return < file.htm tx will preserve the html tags in your tx formatted text The meaning of tx-tags: Beginning of the line tags: <> code block. <> keeps original new-line <> table * to start and row and (*! header fields) TAB or | to separate fields <> unordered list items (
  • ..
). Each item starts from * <> ordered list (
  1. ..
). Each item starts from * <> data itemsi (
  • ..
  • ) . Each item starts from * any_tag-- surrounds the whole line with the tag, e.g. h1-- !_ or h4-- header4 !- or h3-- header3 : - in a code block - the output of the command : - the program syntax line ** bold; ~~ italic; -- code; @@ math - apply to the entire line places a piece of text in a framed box another box type Tags in any position **aa bb => aa bb ** aa bb ** => aa bb ** bold; ~~ italic; -- code; @@ bolditalic *\* ** ; ~\~ ~~; -\- --; @\@ @@ a^^b superscript a,,b subscript -------- Links `linkName `linkName{ linkTitle } `linkName{ linkTitle }{alerttext[| title]} #if title then window, otherwise pop { Figure caption } # align option is moved to the table spec. { Figure caption }{mouseOverImgFile,mouseDownImgFile,mouseClickURL} >>>anchor or >>>anchor{ keyword1, keyword2,.. } kwrd = {asdf, asdfasdfas asdf, asdjfka, ,as d,f } '' - post-processed into nothing ''' - post-processed into space '''' -    <$ - backspace Free html are: ACDEFGHJKLMNOPQRVWXYZadefghjklmopqrvwxyz END endfunction function InTx(string s) # other replacements spl=(shell.options.split | shell.options.s) ? "\n END endfunction # function InBrBlock(string s) return ( Replace(s,'\n',"
    \n") >> Replace(@,'\n


    \n',"\n
    \n") + "
    " ) endfunction # function InSyntax(string s) # Bee-syntax line intepretation Replace(s[3:$], '(\w+?)=' '\1=' ) >> # name= in tt Replace(@,'([ \(\{\[\|])(\w+)' '\1\2' ) >> # most args in italic Replace(@, '([\(\)])' '\1' ) >> # ( and ) in bold Replace(@, '\@(\S+?)' "("+'\1'+" )" ) >> # for @default_value Replace(@, '\`(\S+?)','\1')>> # link Replace(@, '\*(\S+?)' ""+'\1'+" " ) => s # *arg to revert to tt return s endfunction function InUl(string s) ss= Split(s,'\n\s*(\*) ',field=1) s=""; for x in ss if(s!="") s+="

  • "; s+=x; endfor return "\n
      " + s +"\n
    " endfunction # function InOl(string s) ss= Split(s,'\n\s*(\*) ',field=1) s=""; for x in ss if(s!="") s+="
  • "; s+=x; endfor return "
      " + s +"\n
    " endfunction # function InDl(string s) ss= Split(s,'\n\s*(\*) ',field=1) for i=1,Nof(ss) ss[i] = Replace(ss[i], '(.*?)\n?\t+(.*?)':n, '
    \1
    '+"\n
    \n"+'\2'+"
    \n" ,field=0 ) endfor return "
    " + Sum(ss,"\n") +"\n
    " endfunction # function InDl1(string s) ss= Split(s,'\n\s*(\*) ',field=1) for i=1,Nof(ss) ss[i] = Replace(ss[i], '(.*?)\n?\t+(.*?)':n, '
    \1
    '+"\n
    \n"+'\2'+"
    \n" ,field=0 ) endfor return "
    " + Sum(ss,"\n") +"\n
    " endfunction # function InTab(string s) ss= Split(s,'(\n+\*)[\s\!]',field=1) for i=1,Nof(ss) if(Length(Trim(ss[i],right))<=1) continue if(ss[i][1]!="!") then ss[i] = " "+Trim(Replace(ss[i],'\t',"\t")) +" " else ss[i] = " "+Trim(Replace(ss[i][2:$],'\t',"\t")) +" " endif endfor return "" + Sum(ss,"\n") +"\n
    " endfunction # function InTab1(string s) ss= Split(s,'(\n+\*)[\s\!]',field=1) for i=1,Nof(ss) if(Length(Trim(ss[i],right))<=1) continue if(ss[i][1]!="!") then ss[i] = " "+Trim(Replace(ss[i],'\t',"\t")) +" " else ss[i] = " "+Trim(Replace(ss[i][2:$],'\t',"\t")) +" " endif endfor return "" + Sum(ss,"\n") +"\n
    " endfunction