home *** CD-ROM | disk | FTP | other *** search
/ Internet.Works 40 / Issue 40.iso / pc / PCSoftware / NoteTab Pro 2.83 / setup.exe / Main / D: / Prod / SetUp / NoteTab / Libraries / HTML.clb < prev    next >
Encoding:
Text File  |  2000-10-26  |  27.6 KB  |  614 lines

  1. = V5 MultiLine NoSorting TabWidth=30
  2.  
  3. H=";HTML Template"
  4.  
  5.  
  6. H="New Web page"
  7. ^!Open ^$GetTemplatePath$HTML.tpl
  8.  
  9. H=";Document Elements"
  10. Most of these elements are required within an HTML document for it to conform to HTML standards.
  11.  
  12. H="Base"
  13. ^!InsertWizardHtml <BASE HREF="^?[Base URL=^&]" TARGET="^?[Target (optional)=blank^=_blank|parent^=_parent|self^=_self|top^=_top]">^P
  14.  
  15. H="Basefont"
  16. ^!Clip "Basic Color Codes"
  17. ^!SetWizardLabel "Enter values for tag attributes"
  18. ^!InsertWizardHtml <BASEFONT FACE="^?{Font &name=Arial, Helvetica, Sans Serif|Times New Roman, Times, Serif|Courier New, Courier|Wingding, Symbol|Comic Sans MS|Impact|Lucida|Palatino|Verdana}" SIZE="^?{Font &size=-7|-6|-5|-4|-3|-2|-1|+1|+2|+3|+4|+5|+6|+7}" COLOR="^?{Font &Color=^%BasicColors%}">^P
  19.  
  20. H="Body"
  21. ^!Set %HasBody%=False
  22. ^!Clip "Color Codes"
  23. ^!Clip "Basic Color Codes"
  24. ^!InsertWizardHtml <BODY BGCOLOR="^?{&Background Color=^$StrReplace("white^=#FFFFFF";"_white^=#FFFFFF";"^%AllColors%";True;False)$}" TEXT="^?{&Text Color=^$StrReplace("black^=#000000";"_black^=#000000";"^%BasicColors%";True;False)$}" LINK="^?{&Link Color=^$StrReplace("blue^=#0000FF";"_blue^=#0000FF";"^%BasicColors%";True;False)$}" VLINK="^?{&Visited Link Color=^$StrReplace("purple^=#800080";"_purple^=#800080";"^%BasicColors%";True;False)$}" ALINK="^?{&Active Link Color=^$StrReplace("red^=#FF0000";"_red^=#FF0000";"^%BasicColors%";True;False)$}" BACKGROUND="^?{(T=O;F="Image Files|*.gif;*.png;*.jpg;*.jpeg;*.jpe")Background &file name=^$GetSelection$}">^P^P
  25. ^!IfCancel End
  26. ^!Set %HasBody%=True
  27.  
  28. H="HTML begin"
  29. ^!Set %DocValues%=[Omit]^=|XHTML 1.0 Strict^=<?xml version="1.0"?>^%NL%<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">|XHTML 1.0 Transitional^=<?xml version="1.0"?>^%NL%<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">|XHTML 1.0 Frameset^=<?xml version="1.0"?>^%NL%<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">|HTML 4.01 Strict^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">|HTML 4.01 Transitional^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">|HTML 4.01 Frameset^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">|HTML 4 Strict^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">|HTML 4 Transitional^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">|HTML 4 Frameset^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN" "http://www.w3.org/TR/REC-html40/frameset.dtd">|HTML 3.2 (W3C)^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">|HTML (IE3)^=<!DOCTYPE HTML PUBLIC "-//Microsoft//DTD Internet Explorer 3.0 HTML//EN">|HTML 2 (Netscape)^=<!DOCTYPE HTML PUBLIC "-//WebTechs//DTD Mozilla HTML 2.0//EN">|HTML 2 (IETF)^=<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">|HTML 1 (IETF)^=<!DOCTYPE HTML PUBLIC  "-//IETF//DTD HTML Level 1//EN">
  30.  
  31. ^!Set %CharSetValues%=[Omit]^=|Default encoding^=UTF-8|Latin 1 (Western/West European)^=ISO 8859-1|Latin 2 (Central and East European)^=ISO 8859-2|Latin 3 (South European, Maltese and Esperanto)^=ISO 8859-3|Latin 4 (North European)^=ISO 8859-4|Latin/Cyrillic (Slavic languages)^=ISO 8859-5|Latin/Arabic^=ISO 8859-6|Latin/Greek (modern Greek)^=ISO 8859-7|Latin/Hebrew (Hebrew and Yiddish)^=ISO 8859-8|Latin 5 (Turkish)^=ISO 8859-9|Latin 6 (Nordic: S·mi, Inuit, Icelandic)^=ISO 8859-10|Latin/Thai^=ISO 8859-11|Latin 7 (Baltic Rim)^=ISO 8859-13|Latin 8 (Celtic)^=ISO 8859-14|Latin 9 ("Euro")^=ISO 8859-15|Japanese (SHIFT_JIS)^=SHIFT_JIS|Japanese (EUC-JP)^=EUC-JP
  32.  
  33. ^!Set %DefaultDocValue%=^$GetValue(HTML_DocType)$
  34. ^!IfTrue ^$IsEmpty(^%DefaultDocValue%)$ ^!Set %DefaultDocValue%=[Omit]
  35. ^!Set %DocValues%=^$SetDefaultValue("^%DocValues%";^%DefaultDocValue%)$
  36.  
  37. ^!Set %DefaultCharSet%=^$GetValue(HTML_CharSet)$
  38. ^!IfTrue ^$IsEmpty(^%DefaultCharSet%)$ ^!Set %DefaultCharSet%=[Omit]
  39. ^!Set %CharSetValues%=^$SetDefaultValue("^%CharSetValues%";^%DefaultCharSet%)$
  40.  
  41. ^!Set %Author%=^$GetValue(HTML_Author)$
  42. ^!Set %Email%=^$GetValue(HTML_Email)$
  43.  
  44. ^!Set %DocType%=^?{Document &type=^%DocValues%}; %Title%=^?{&Web page title}; %Description%=^?{Web page &description}; %Keywords%=^?{Web page &keywords}; %Author%=^?{Your &name=^%Author%}; %Email%=^?{Your &e-mail address=^%Email%}; %CharSet%=^?{&Character set=^%CharSetValues%}
  45.  
  46. ^!SaveValue HTML_DocType=^%DocType%
  47. ^!SaveValue HTML_CharSet=^%CharSet%
  48. ^!SaveValue HTML_Author=^%Author%
  49. ^!SaveValue HTML_Email=^%Email%
  50. ^!IfFalse ^$IsEmpty(^%DocType%)$ ^!Set %DocType%=^%DocType%^P
  51. ^!IfFalse ^$IsEmpty(^%CharSet%)$ ^!Set %CharSet%=  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=^%CharSet%">^P
  52.  
  53. ^!If ^$GetClipVersion$ = 5 Start
  54. ^!Set %HtmlFormat%=^$GetHtmlFormat$
  55. ^!If ^%HtmlFormat% = XHTML Start
  56. ^!If ^$StrPos("XHTML";"^%DocType%";False)$ = 0 Start
  57. ^!SetHtmlFormat XHTML
  58.  
  59. :Start
  60. ^!InsertHtml ^%DocType%<HTML>^P<HEAD>^P  <TITLE>^%Title%</TITLE>^P  <LINK REV="made" HREF="mailto:^%Email%">^P^%CharSet%  <META NAME="generator" CONTENT="^$GetProgName$ ^$GetProgVersion$">^P  <META NAME="author" CONTENT="^%Author%">^P  <META NAME="description" CONTENT="^%Description%">^P  <META NAME="keywords" CONTENT="^%Keywords%">^P</HEAD>^P^P
  61. ^!Clip Body
  62. ^!IfFalse ^%HasBody% ^!InsertHtml <BODY>^P^P
  63. ^!If ^$GetClipVersion$ = 5 Skip
  64. ^!SetHtmlFormat ^%HtmlFormat%
  65.  
  66. H="HTML end"
  67. ^!InsertHtml </BODY>^P</HTML>^P
  68.  
  69. H="Last updated..."
  70. ^!InsertHtml Last updated on <^?[Format date==_Bold^=B|Italic^=I]>^$GetDate(mmmm dd, yyyy)$</^?[Format date]>^P
  71.  
  72. H="Link"
  73. ^!SetWizardLabel "Enter values for tag attributes"
  74. ^!InsertWizardHtml <LINK HREF="^?{&URL of linked resource}" REL="^?{&Relationship with linked document=alternate|bookmark|chapter|contents|copyright|glossary|help|index|next|prev|section|start|stylesheet|subsection}" REV="^?{&Relationship of current document=alternate|bookmark|chapter|contents|copyright|glossary|help|index|made|next|prev|section|start|stylesheet|subsection}">^P
  75.  
  76. H="Meta"
  77. ^!SetWizardLabel "Enter values for tag attributes"
  78. ^!InsertWizardHtml <META HTTP-EQUIV="^?{&HTTP header string=content-type|expires|page-enter|pics-label|pragma|refresh}" NAME="^?{&Name of meta-information=author|copyright|date|description|generator|identifier|keywords|revisit-after|robots}" CONTENT="^?{&Content}">^P
  79.  
  80. H="Style"
  81. ^!SetWizardLabel "Enter values for tag attributes"
  82. ^!InsertWizardHtml <STYLE TYPE="^?{&Mime type=text/css}" LANG="^?{&Language}">^P<!--^P  ^&^P-->^P</STYLE>^P
  83.  
  84. H="Title"
  85. ^!InsertHtml <TITLE>^&</TITLE>^P
  86.  
  87. H=";Anchor Elements"
  88. An anchor element is used to define the start and/or destination of a hypertext link.
  89.  
  90. H="Bookmark"
  91. ^!InsertHtml <A NAME="^?[Bookmark label]">^&</A>
  92.  
  93. H="Hyperlink"
  94. ^!SetWizardLabel "Enter values for tag attributes"
  95. ^!InsertWizardHtml <A HREF="^?{&Link URL}" TARGET="^?{&Target (transitional)=blank^=_blank|parent^=_parent|self^=_self|top^=_top}">^?{Link &description=^&}</A>
  96.  
  97. H="Hyperlink = description"
  98. ^!InsertHtml <A HREF="^&">^?[=^&]</A>
  99.  
  100. H="Hyperlink to bookmark"
  101. ^!InsertHtml <A HREF="#^?[Link to Bookmark]">^&</A>
  102.  
  103. H="Hyperlink with image"
  104. ^!SetWizardLabel "Enter values for tag attributes"
  105. ^!InsertWizardHtml <A HREF="^?{&Link URL}"><IMG ^?{(T=T;F="Image Files|*.gif;*.png;*.jpg;*.jpeg")&Image file name} BORDER="0" ALT="^?{Image text &description=^&}"></A>
  106.  
  107. H="MailTo"
  108. ^!SetWizardLabel "Enter values for tag attributes"
  109. ^!InsertHtml <A HREF="mailto:^?{&Email address=^&}">^?{&Link description text=^&}</A>
  110.  
  111. H=";Block Formatting"
  112. These elements are used for the formatting of whole blocks of text within an HTML document.
  113.  
  114. H="Address"
  115. ^!InsertHtml <ADDRESS>^P  ^&^P</ADDRESS>^P
  116.  
  117. H="Blockquote"
  118. ^!SetPasteIndent Off
  119. ^!InsertHtml <BLOCKQUOTE>^&</BLOCKQUOTE>
  120.  
  121. H="Center"
  122. ^!SetPasteIndent Off
  123. ^!InsertHtml <CENTER>^&</CENTER>
  124.  
  125. H="Font"
  126. ^!Clip "Basic Color Codes"
  127. ^!SetPasteIndent Off
  128. ^!SetWizardLabel "Enter values for tag attributes"
  129. ^!InsertWizardHtml <FONT FACE="^?{Font &name=Arial, Helvetica, Sans Serif|Times New Roman, Times, Serif|Courier New, Courier|Wingding, Symbol|Comic Sans MS|Impact|Lucida|Palatino|Verdana}" SIZE="^?{Font &size=-7|-6|-5|-4|-3|-2|-1|+1|+2|+3|+4|+5|+6|+7}" COLOR="^?{Font &Color=^%BasicColors%}">^&</FONT>
  130.  
  131. H="Line break"
  132. ^!InsertHtml <BR>^P
  133.  
  134. H="H? header"
  135. ^!InsertHtml <H^?[(T=C)Header level==_1|2|3|4|5|6]>^&</H^?[Header level]>^P
  136.  
  137. H="Horizontal line"
  138. ^!SetWizardLabel "Optional attributes for the HR tag"
  139. ^!InsertWizardHtml <HR ALIGN="^?{(T=C)&Align (transitional)=center|left|right}" SIZE="^?{&Size (transitional)}" WIDTH="^?{&Width (transitional)}"^?{(T=C)&No shade (transitional)==True^= NOSHADE|False^=}>^P
  140.  
  141. H="Paragraph block"
  142. ^!SetPasteIndent Off
  143. ^!InsertWizardHtml <P ALIGN="^?{&Align (transitional)=center|justify|left|right}">^&</P>
  144.  
  145. H="Preformatted text"
  146. ^!InsertHtml <PRE>^P  ^&^P</PRE>^P
  147.  
  148. H=";List Elements"
  149. List elements are used in the body of an HTML document and may be nested.
  150.  
  151. H="Definition list"
  152. ^!InsertHtml <DL>^P^$StrFill("  <DT></DT><DD></DD>^P";^?[How many items?=1|2|_3|4|5|6|7|8|9])$</DL>^P
  153.  
  154. H="Ordered List"
  155. ^!Clip "CreateList" OL
  156.  
  157. H="Unordered list"
  158. ^!Clip "CreateList" UL
  159.  
  160. H=";Information Elements"
  161. Information type elements indicate to the browser that the enclosed text should be rendered in a way according to the browser, rather than using a specific formatting style.
  162.  
  163. H="Citation"
  164. ^!InsertHtml <CITE>^&</CITE>
  165.  
  166. H="Code"
  167. ^!InsertHtml <CODE>^&</CODE>
  168.  
  169. H="Comment"
  170. <!-- ^?[Comment=^&] -->
  171.  
  172. H="Emphasis"
  173. ^!InsertHtml <EM>^&</EM>
  174.  
  175. H="Keyboard"
  176. ^!InsertHtml <KBD>^&</KBD>
  177.  
  178. H="Strong"
  179. ^!InsertHtml <STRONG>^&</STRONG>
  180.  
  181. H="Variable"
  182. ^!InsertHtml <VAR>^&</VAR>
  183.  
  184. H=";Character Formatting"
  185. Character formatting elements produce strict rendering of the text.
  186.  
  187. H="Big text"
  188. ^!InsertHtml <BIG>^&</BIG>
  189.  
  190. H="Bold"
  191. ^!Clip CheckLogical
  192.  
  193. :PasteTag
  194. ^!Set %Value%=B
  195. ^!IfTrue "^%p_LogicalTag%" ^!Set %Value%=STRONG
  196. ^!InsertHtml <^%Value%>^&</^%Value%>
  197.  
  198. H="Italic"
  199. ^!Clip CheckLogical
  200.  
  201. :PasteTag
  202. ^!Set %Value%=I
  203. ^!IfTrue "^%p_LogicalTag%" ^!Set %Value%=EM
  204. ^!InsertHtml <^%Value%>^&</^%Value%>
  205.  
  206. H="Small text"
  207. ^!InsertHtml <SMALL>^&</SMALL>
  208.  
  209. H="Strike"
  210. ^!InsertHtml <STRIKE>^&</STRIKE>
  211.  
  212. H="Subscript"
  213. ^!InsertHtml <SUB>^&</SUB>
  214.  
  215. H="Superscript"
  216. ^!InsertHtml <SUP>^&</SUP>
  217.  
  218. H="Underline"
  219. ^!InsertHtml <U>^&</U>
  220.  
  221. H=";Image Elements"
  222. The Image element is used to incorporate in-line graphics into an HTML document.
  223.  
  224. H="Embed"
  225. ^!SetWizardLabel "Enter values for tag attributes"
  226. ^!InsertWizardHtml <EMBED SRC="^?{&Object URL=^&}" ALIGN="^?{&Align=absbottom|absmiddle|baseline|bottom|left|middle|right|texttop|top}" ALT="^?{Alternative text &description}">
  227.  
  228. H="Image"
  229. ^!SetWizardLabel "Enter values for tag attributes"
  230. ^!InsertWizardHtml <IMG ^?{(T=T;F="Image Files|*.gif;*.png;*.jpg;*.jpeg")&Image file name} BORDER="^?{&Border (transitional)=_0|1|2|3|4|5}" ALIGN="^?{&Align (transitional)=bottom|left|middle|right|top}" HSPACE="^?{&Horizontal space (transitional)}" VSPACE="^?{&Vertical space (transitional)}" ALT="^?{Image text &description=^&}">
  231.  
  232. H=";Table Elements"
  233. Table elements with tags to define rows and cells.
  234.  
  235. H="Caption"
  236. ^!InsertWizardHtml <CAPTION ALIGN="^?{Align (transitional)=bottom|left|right|top}">^&</CAPTION>
  237.  
  238. H="Table"
  239. ^!Clip "Color Codes"
  240. ^!SetWizardLabel "Enter values for tag attributes"
  241. ^!InsertWizardHtml <TABLE ALIGN="^?{&Align (transitional)=center|left|right}" BGCOLOR="^?{Background &color (transitional)=^%AllColors%}" BORDER="^?{&Border=_0|1|2|3|4|5|6|7|8}" CELLSPACING="^?{Cell &spacing=0}" CELLPADDING="^?{Cell &padding=0}" WIDTH="^?{&Width=100%}">^P  ^&^P</TABLE>^P
  242.  
  243. H="TD table data cell"
  244. ^!Clip "Color Codes"
  245. ^!SetWizardLabel "Enter values for tag attributes"
  246. ^!InsertWizardHtml <TD ALIGN="^?{Data &horizontal align=center|justify|left|right}" VALIGN="^?{Data &vertical align=baseline|bottom|middle|top}" COLSPAN="^?{&Column span}" ROWSPAN="^?{&Row span}" BGCOLOR="^?{&Background color (transitional)=^%AllColors%}"^?{(T=C)&No wrap (transitional)==True^= NOWRAP|False^=}>^&</TD>
  247.  
  248. H="TH table heading cell"
  249. ^!Clip "Color Codes"
  250. ^!SetWizardLabel "Enter values for tag attributes"
  251. ^!InsertWizardHtml <TH ALIGN="^?{Data &horizontal align=center|justify|left|right}" VALIGN="^?{Data &vertical align=baseline|bottom|middle|top}" COLSPAN="^?{&Column span}" ROWSPAN="^?{&Row span}" BGCOLOR="^?{&Background color (transitional)=^%AllColors%}"^?{(T=C)&No wrap (transitional)==True^= NOWRAP|False^=}>^&</TH>
  252.  
  253. H="TR table row"
  254. ^!Clip "Color Codes"
  255. ^!SetWizardLabel "Enter values for tag attributes"
  256. ^!InsertWizardHtml <TR ALIGN="^?{Data &horizontal align=center|justify|left|right}" VALIGN="^?{Data &vertical align=baseline|bottom|middle|top}" BGCOLOR="^?{&Background color (transitional)=^%AllColors%}">^&</TR>
  257.  
  258. H="Table wizard"
  259. ^!InsertWizardHtml <TABLE ALIGN="^?[(3)&Table align (transitional)=center|left|right]" BORDER="^?[(4)&Border=_0|1|2|3|4|5|6|7|8]" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">^P
  260. ^!SET %RowCount%=^?[(1)How many &rows=1|2|_3|4|5|6|7|8|9]
  261. ^!SET %CellCount%=^?[(2)How many &cells=1|2|_3|4|5|6|7|8|9]
  262. ^!SET %RowIndex%=0
  263. :RepeatRow
  264. ^!INC RowIndex
  265. ^!IF ^%RowIndex% > ^%RowCount% EndRow
  266. ^!InsertWizardHtml   <TR ALIGN="^?[(5)TR &Align=center|left|right]" VALIGN="^?[(6)TR &VAlign=baseline|bottom|middle|top]">^P
  267. ^!SET %CellIndex%=0
  268. :RepeatCell
  269. ^!INC CellIndex
  270. ^!IF ^%CellIndex% > ^%CellCount% EndCell
  271. ^!InsertWizardHtml     <TD ALIGN="^?[(7)T&D Align=center|left|right]" VALIGN="^?[(8)TD VAli&gn=baseline|bottom|middle|top]">^P
  272. ^?[(10)&Prompt for cell text=Yes^=    ^?{R^%RowIndex%C^%CellIndex%: Enter cell text}|_No^=    <!--R^%RowIndex%C^%CellIndex%-->]
  273. ^!InsertHtml ^P    </TD>^P
  274. ^!GoTo RepeatCell
  275. :EndCell
  276. ^!InsertHtml   </TR>^P
  277. ^!GoTo RepeatRow
  278. :EndRow
  279. ^!InsertHtml </TABLE>^P
  280.  
  281. H="Table wizard (simple)"
  282. ^!InsertHtml <TABLE BORDER="1" WIDTH="100%">^P
  283. ^!SET %RowCount%=^?[How many &rows=1|2|_3|4|5|6|7|8|9]
  284. ^!SET %CellCount%=^?[How many &cells=1|2|_3|4|5|6|7|8|9]
  285. ^!SET %RowIndex%=0
  286. :RepeatRow
  287. ^!INC RowIndex
  288. ^!IF ^%RowIndex% > ^%RowCount% EndRow
  289. ^!InsertHtml   <TR>^P
  290. ^!SET %CellIndex%=0
  291. :RepeatCell
  292. ^!INC CellIndex
  293. ^!IF ^%CellIndex% > ^%CellCount% EndCell
  294. ^!InsertHtml     <TD>^P
  295. ^?[&Prompt for cell text=Yes^=    ^?{R^%RowIndex%C^%CellIndex%: Enter cell text}|_No^=    <!--R^%RowIndex%C^%CellIndex%-->]
  296. ^!InsertHtml ^P    </TD>^P
  297.  
  298. ^!GoTo RepeatCell
  299. :EndCell
  300. ^!InsertHtml   </TR>^P
  301. ^!GoTo RepeatRow
  302. :EndRow
  303. ^!InsertHtml </TABLE>^P
  304.  
  305. H=";Frame Elements"
  306. These elements are used to create frames.
  307.  
  308. H="Frame"
  309. ^!SetWizardLabel "Enter values for tag attributes"
  310. ^!InsertWizardHtml <FRAME SRC="^?{(T=O;F="HTML Files (*.htm*)|*.htm*")&URL of frame contents}" NAME="^?{&Name of frame}" FRAMEBORDER="^?{&Frame border=0|1}" SCROLLING="^?{&Scrolling=auto|no|yes}" ^?{(T=C)N&o resize==True^= NORESIZE|False^=}>^P
  311.  
  312. H="Frameset"
  313. ^!SetWizardLabel "Enter values for tag attributes"
  314. ^!InsertWizardHtml <FRAMESET COLS="^?{List of &columns}" ROWS="^?{List of &rows}">^p  ^&^p</FRAMESET>^p
  315.  
  316. H="IFrame"
  317. ^!SetWizardLabel "Enter values for tag attributes"
  318. ^!InsertWizardHtml <IFRAME SRC="^?{(T=O;F="HTML Files (*.htm*)|*.htm*")&URL of frame contents}" ALIGN="^?{&Align=bottom|left|middle|right|top}" HEIGHT="^?{&Height}" WIDTH="^?{&Width}" NAME="^?{&Name of frame}">^p  ^&^p</IFRAME>^p
  319.  
  320. H="NoFrames"
  321. ^!InsertHtml <NOFRAMES>^p  ^&^p</NOFRAMES>^p
  322.  
  323. H=";Form Elements"
  324. These elements are used to create forms.
  325.  
  326. H="Form"
  327. ^!SetWizardLabel "Enter values for tag attributes"
  328. ^!InsertWizardHtml <FORM ACTION="^?{&Action URL}" METHOD="^?{&Method=get|post}" TARGET="^?{&Target (transitional)=blank^=_blank|parent^=_parent|self^=_self|top^=_top}">^P  ^&^P</FORM>^P
  329.  
  330. H="Input"
  331. ^!SetWizardLabel "Enter values for tag attributes"
  332. ^!InsertWizardHtml <INPUT TYPE="^?{Input &type=Button|Checkbox|File|Hidden|Image|Password|Radio|Reset|Submit|_Text}" NAME="^?{Input &name}" VALUE="^?{&Value=^&}">^P
  333.  
  334. H="Input button"
  335. ^!SetWizardLabel "Enter values for tag attributes"
  336. ^!InsertWizardHtml <INPUT TYPE="Button" NAME="^?{Button &name}" VALUE="^?{&Value=^&}">^P
  337.  
  338. H="Input checkbox"
  339. ^!SetWizardLabel "Enter values for tag attributes"
  340. ^!InsertWizardHtml <INPUT TYPE="Checkbox" NAME="^?{Checkbox &name}" VALUE="^?{&Value=^&}"^?{(T=C)&Checked==True^= CHECKED|_False^=}>^P
  341.  
  342. H="Input radio button"
  343. ^!SetWizardLabel "Enter values for tag attributes"
  344. ^!InsertWizardHtml <INPUT TYPE="Radio" NAME="^?{Radio button &name}" VALUE="^?{&Value=^&}"^?{(T=C)&Checked==True^= CHECKED|_False^=}>^P
  345.  
  346. H="Input submit"
  347. ^!SetWizardLabel "Enter value for tag attributes"
  348. ^!InsertWizardHtml <INPUT TYPE="Submit" NAME="^?{Button &name}" VALUE="^?{&Value=Submit}">^P
  349.  
  350. H="Input text"
  351. ^!SetWizardLabel "Enter values for tag attributes"
  352. ^!InsertWizardHtml <INPUT TYPE="Text" NAME="^?{Field &name}" VALUE="^?{&Value=^&}" MAXLENGTH="^?{&Maximum text length}" SIZE="^?{&Size}"^?{(T=C)&Read Only==True^= READONLY|_False^=}>^P
  353.  
  354. H="Multi-line input"
  355. ^!SetWizardLabel "Enter values for tag attributes"
  356. ^!InsertWizardHtml <TEXTAREA NAME="^?{Input &name}" ROWS="^?{&Rows}" COLS="^?{&Columns}" WRAP="^?{&Word wrap=_off|virtual|physical}"^?{(T=C)&Read Only==True^= READONLY|_False^=}>^P^&^P</TEXTAREA>^P
  357.  
  358. H="Option"
  359. ^!SetWizardLabel "Enter values for tag attributes"
  360. ^!InsertWizardHtml <OPTION VALUE="^?{&Option value (optional)}"^?{&Selected=Yes^= SELECTED|_No^=}></OPTION>^P
  361.  
  362. H="Select"
  363. ^!If ^$GetSelSize$ > 0 FormatSelection
  364. ^!Set %Count%=^?{How many &items?=1|2|_3|4|5|6|7|8|9}; %FieldName%=^?{Field &name}
  365. ^!InsertWizardHtml <SELECT NAME="^%FieldName%">^P^$StrFill("  <OPTION></OPTION>^P";^%Count%)$</SELECT>^P
  366. ^!Goto End
  367.  
  368. :FormatSelection
  369. ^!Select PARAGRAPHS
  370. ^!SetListDelimiter ^P
  371. ^!SetArray %Items%=^$GetSelection$
  372.  
  373. ^!Set %Indent%="  "
  374. ^!Set %GroupIndent%=""
  375. ^!Set %IndentSize%=^$Calc(^$StrSize("^%Items1%!")$ - ^$StrSize("^$StrTrim("^%Items1%!")$")$)$
  376. ^!If ^%IndentSize% > 0 ^!Set %Indent%=^$StrCopy("^%Items1%";1;^%IndentSize%)$
  377. ^!If ^%IndentSize% > 2 ^!Set %GroupIndent%=^$StrCopy("^%Indent%";1;^$Calc(^%IndentSize% - 2)$)$
  378.  
  379. ^!Set %Index%=1; %ItemsCount%=^%Items0%; %ListStr%=^%GroupIndent%<SELECT NAME="^?{Field name}">^P
  380. ^!If ^%ItemsCount% > 1 ^!Dec %ItemsCount%
  381.  
  382. :StartLoop
  383. ^!If ^%Index% > ^%ItemsCount% EndLoop
  384. ^!Set %ListStr%=^%ListStr%^%Indent%<OPTION VALUE="^?{&Option value (optional)}"^?{&Selected=Yes^= SELECTED|_No^=}>^?{Text=^$StrTrim("^%Items^%Index%%")$}</OPTION>^P
  385. ^!Inc %Index%
  386. ^!Goto StartLoop
  387.  
  388. :EndLoop
  389. ^!InsertWizardHtml ^%ListStr%^%GroupIndent%</SELECT>^P
  390.  
  391. H=";Other Elements"
  392.  
  393.  
  394. H="Script"
  395. ^!SetWizardLabel "Enter values for tag attributes"
  396. ^!InsertWizardHtml <SCRIPT LANGUAGE="^?{&Scripting Language=javascript|jscript|vbscript}" SRC="^?{&URL of script code}" FOR="^?{&Element ID}" EVENT="^?{&Event name}"^?{(T=C)&Defer==True^= DEFER|False^=}>^P<!--^P  ^&^P-->^P</SCRIPT>^P
  397.  
  398. H="NoScript"
  399. ^!InsertHtml <NOSCRIPT>^p  ^&^p</NOSCRIPT>^p
  400.  
  401. H="Applet"
  402. ^!SetWizardLabel "Enter values for tag attributes"
  403. ^!InsertWizardHtml <APPLET CODE="^?{&URL of Java code}" ARCHIVE="^?{Archive &file}" ALIGN="^?{&Align=bottom|left|middle|right|top}" WIDTH="^?{Applet &width}" HEIGHT="^?{Applet &height}" ALT="^?{Alternative text &description}">^P  ^&^P</APPLET>^P
  404.  
  405. H="Special character"
  406. &^?[(H=8)Choose special character to paste==_© Copyright^=copy|Æ Registered TradeMark^=reg|TM TradeMark^=trade|Non breaking space^=nbsp|"^=quot|&^=amp|<^=lt|>^=gt|¡^=Aacute|·^=aacute|¿^=Agrave|‡^=agrave|¬^=Acirc|‚^=acirc|ƒ^=Auml|‰^=auml|√^=Atilde|„^=atilde|≈^=Aring|Â^=aring|Δ^=Aelig|Ê^=aelig|«^=Ccedil|Á^=ccedil|–^=Eth|^=eth|…^=Eacute|È^=eacute|»^=Egrave|Ë^=egrave| ^=Ecirc|Í^=ecirc|À^=Euml|Î^=euml|Õ^=Iacute|Ì^=iacute|Ã^=Igrave|Ï^=igrave|Œ^=Icirc|Ó^=icirc|œ^=Iuml|Ô^=iuml|—^=Ntilde|Ò^=ntilde|”^=Oacute|Û^=oacute|“^=Ograve|Ú^=ograve|‘^=Ocirc|Ù^=ocirc|÷^=Ouml|ˆ^=ouml|’^=Otilde|ı^=otilde|ÿ^=Oslash|¯^=oslash|fl^=szlig|fi^=Thorn|˛^=thorn|⁄^=Uacute|˙^=uacute|Ÿ^=Ugrave|˘^=ugrave|€^=Ucirc|˚^=ucirc|‹^=Uuml|¸^=uuml|›^=Yacute|˝^=yacute|ˇ^=yuml];
  407.  
  408. H="Non breaking space"
  409.  
  410.  
  411. H="Apostrophe"
  412.  
  413. H="Quotes"
  414. “^&”
  415.  
  416. H="Color"
  417. ^!Clip "Color Codes"
  418. ^?{Choose a color=^$StrReplace("alice blue^=#F0F8FF";"_alice blue^=#F0F8FF";"^%AllColors%";True;False)$}
  419.  
  420. H=";Insert Tags"
  421.  
  422.  
  423. H="HRef Link"
  424. ^!InsertHtml <A ^?[(T=T;F="HTML Files|*.*htm*;*.asp;*.css")Link to web page=]>^?[Link text=^&]</A>
  425.  
  426. H="Img Link"
  427. ^!InsertHtml <IMG ^?[(T=T;C=U;F="Image Files|*.gif;*.png;*.jpg;*.jpeg;*.jpe")Link to image] BORDER="0" ALT="^?[Alt=^&]">
  428.  
  429. H=";Useful Commands"
  430.  
  431.  
  432. H="Tidy HTML code"
  433. ;Tidy code in the current documents. This Clip can use the HTML Tidy program, if available
  434. ^!Continue This command will tidy the code in your current document. Continue?
  435.  
  436. ;Determine method to use
  437. ^!Set %UseHtmlTidy%=No
  438. ^!IfFileExist "^$GetTidyExe$" ^!Set %UseHtmlTidy%=Yes
  439. ^!IfFalse ^%UseHtmlTidy% NoteTabMethod
  440. ;If HTML Tidy is found, ask which method the user would like to use
  441. ^!Set %UseHtmlTidy%=^?{Select method==_Use HTML Tidy program (more options)^=Yes|Use NoteTab commands (much faster)^=No}
  442. ^!IfTrue ^%UseHtmlTidy% TidyMethod
  443.  
  444. :NoteTabMethod
  445. ^!Set %Param%=^?{Tag format?==_Uppercase|Lowercase|XHTML}
  446. ^!Select ALL
  447. ^!InsertText ^$GetHtmlTextTidy("^$GetSelection$";^%Param%)$
  448. ^!Goto EndCall
  449.  
  450. :TidyMethod
  451. ^!Set %Param%=--tidy-mark false -q^?{Indent HTML code?==_Yes^=i|No^=}^?{Tag format?==_Uppercase^=u|Lowercase^=|XHTML^= -asxml}^?{Wrap long lines?==Yes^=|_No^= -wrap 0}
  452. ^!RunTidy ^%Param%
  453.  
  454. :EndCall
  455. ;Place the cursor at the start of the document
  456. ^!Jump Text_Start
  457.  
  458.  
  459. H=";Quick Tags"
  460.  
  461.  
  462. H="p"
  463. ^!SetPasteIndent Off
  464. ^!InsertHtml <P>^&</P>
  465.  
  466. H="br"
  467. ^!InsertHtml <BR>^P
  468.  
  469.  
  470. H="i"
  471. ^!Clip CheckLogical
  472.  
  473. :PasteTag
  474. ^!Set %Value%=I
  475. ^!IfTrue "^%p_LogicalTag%" ^!Set %Value%=EM
  476. ^!InsertHtml <^%Value%>^&</^%Value%>
  477.  
  478. H="b"
  479. ^!Clip CheckLogical
  480.  
  481. :PasteTag
  482. ^!Set %Value%=B
  483. ^!IfTrue "^%p_LogicalTag%" ^!Set %Value%=STRONG
  484. ^!InsertHtml <^%Value%>^&</^%Value%>
  485.  
  486. H="c"
  487. ^!InsertHtml <CENTER>^&</CENTER>
  488.  
  489. H="a"
  490. ^!InsertHtml <A HREF="^&"></A>
  491.  
  492. H="m"
  493. ^!InsertHtml <A HREF="mailto:^&"></A>
  494.  
  495. H="img"
  496. ^!InsertHtml <IMG SRC="^&" BORDER="0" ALT="">
  497.  
  498. H="co"
  499. <!-- ^& -->
  500.  
  501. H="td"
  502. ^!InsertHtml <TD>^&</TD>
  503.  
  504. H="tr"
  505. ^!InsertHtml <TR>^&</TR>
  506.  
  507. H="h1"
  508. ^!InsertHtml <H1>^&</H1>
  509.  
  510. H="h2"
  511. ^!InsertHtml <H2>^&</H2>
  512.  
  513. H="h3"
  514. ^!InsertHtml <H3>^&</H3>
  515.  
  516. H="h4"
  517. ^!InsertHtml <H4>^&</H4>
  518.  
  519. H=";"
  520.  
  521.  
  522. H=";Clipbar items"
  523.  
  524.  
  525. H="Open HTML-1 Clipbar"
  526. ^!OpenClipbar HTML-1
  527.  
  528. H="Open HTML-2 Clipbar"
  529. ^!OpenClipbar HTML-2
  530.  
  531. H="Paragraph"
  532. ^!SetPasteIndent Off
  533. ^!InsertHtml <P>^&</P>
  534.  
  535. H="Align center"
  536. ^!SetPasteIndent Off
  537. ^!InsertHtml <P ALIGN="center">^&</P>
  538.  
  539. H="Align justify"
  540. ^!SetPasteIndent Off
  541. ^!InsertHtml <P ALIGN="justify">^&</P>
  542.  
  543. H="Align left"
  544. ^!SetPasteIndent Off
  545. ^!InsertHtml <P ALIGN="left">^&</P>
  546.  
  547. H="Align right"
  548. ^!SetPasteIndent Off
  549. ^!InsertHtml <P ALIGN="right">^&</P>
  550.  
  551. H=";"
  552.  
  553.  
  554. H=";About this library"
  555. This library was written by Fookes Software to serve as a demonstration of the varied tasks that can be performed by the Editor Clipbook. You are free to customize it any way you like, but make sure you keep a backup copy before installing a new copy of NoteTab over it!
  556.  
  557. If you have a useful Clipbook library that you would like to share with other NoteTab users, please submit it to: <clipbook@notetab.com>. Your library will then be added to the Clipbook repository on the web.
  558.  
  559.  
  560. H=";"
  561.  
  562.  
  563. H="_Color Codes"
  564. ^!Set %AllColors%=alice blue^=#F0F8FF|antique white^=#FAEBD7|aqua^=#00FFFF|aqua marine^=#7FFFD4|azure^=#F0FFFF|beige^=#F5F5DC|bisque^=#FFE4C4|black^=#000000|blanched almond^=#FFEBCD|blue^=#0000FF|blue violet^=#8A2BE2|brown^=#A52A2A|burly wood^=#DEB887|cadet blue^=#5F9EA0|chartreuse^=#7FFF00|chocolate^=#D2691E|coral^=#FF7F50|corn flower blue^=#6495ED|corn silk^=#FFF8DC|crimson^=#DC143C|cyan^=#00FFFF|dark blue^=#00008B|dark cyan^=#008B8B|dark golden rod^=#B8860B|dark gray^=#A9A9A9|dark green^=#006400|dark khaki^=#BDB76B|dark magenta^=#8B008B|dark olive green^=#556B2F|dark orange^=#FF8C00|dark orchid^=#9932CC|dark red^=#8B0000|dark salmon^=#E9967A|dark sea green^=#8FBC8F|dark slate blue^=#483D8B|dark slate gray^=#2F4F4F|dark turquoise^=#00CED1|dark violet^=#9400D3|deep pink^=#FF1493|deep sky blue^=#00BFFF|dim gray^=#696969|dodger blue^=#1E90FF|fire brick^=#B22222|floral white^=#FFFAF0|forest green^=#228B22|fuchsia^=#FF00FF|gainsboro^=#DCDCDC|ghost white^=#F8F8FF|gold^=#FFD700|golden rod^=#DAA520|gray^=#808080|green^=#008000|green yellow^=#ADFF2F|honey dew^=#F0FFF0|hot pink^=#FF69B4|indian red^=#CD5C5C|indigo^=#4B0082|ivory^=#FFFFF0|khaki^=#F0E68C|lavender^=#E6E6FA|lavender blush^=#FFF0F5|lawn green^=#7CFC00|lemon chiffon^=#FFFACD|light blue^=#ADD8E6|light coral^=#F08080|light cyan^=#E0FFFF|light golden rod yellow^=#FAFAD2|light green^=#90EE90|light grey^=#D3D3D3|light pink^=#FFB6C1|light salmon^=#FFA07A|light sea green^=#20B2AA|light sky blue^=#87CEFA|light slate gray^=#778899|light steel blue^=#B0C4DE|light yellow^=#FFFFE0|lime^=#00FF00|lime green^=#32CD32|linen^=#FAF0E6|magenta^=#FF00FF|maroon^=#800000|medium aqua marine^=#66CDAA|medium blue^=#0000CD|medium orchid^=#BA55D3|medium purple^=#9370DB|medium sea green^=#3CB371|medium slate blue^=#7B68EE|medium spring green^=#00FA9A|medium turquoise^=#48D1CC|medium violet red^=#C71585|midnight blue^=#191970|mint cream^=#F5FFFA|misty rose^=#FFE4E1|moccasin^=#FFE4B5|navajo white^=#FFDEAD|navy^=#000080|old lace^=#FDF5E6|olive^=#808000|olive drab^=#6B8E23|orange^=#FFA500|orange red^=#FF4500|orchid^=#DA70D6|pale golden rod^=#EEE8AA|pale green^=#98FB98|pale turquoise^=#AFEEEE|pale violet red^=#DB7093|papaya whip^=#FFEFD5|peach puff^=#FFDAB9|peru^=#CD853F|pink^=#FFC0CB|plum^=#DDA0DD|powder blue^=#B0E0E6|purple^=#800080|red^=#FF0000|rosy brown^=#BC8F8F|royal blue^=#4169E1|saddle brown^=#8B4513|salmon^=#FA8072|sandy brown^=#F4A460|sea green^=#2E8B57|sea shell^=#FFF5EE|sienna^=#A0522D|silver^=#C0C0C0|sky blue^=#87CEEB|slate blue^=#6A5ACD|slate gray^=#708090|snow^=#FFFAFA|spring green^=#00FF7F|steel blue^=#4682B4|tan^=#D2B48C|teal^=#008080|thistle^=#D8BFD8|tomato^=#FF6347|turquoise^=#40E0D0|violet^=#EE82EE|wheat^=#F5DEB3|white^=#FFFFFF|white smoke^=#F5F5F5|yellow^=#FFFF00|yellow green^=#9ACD32
  565.  
  566. H="_Basic Color Codes"
  567. ^!Set %BasicColors%=aqua^=#00FFFF|black^=#000000|blue^=#0000FF|fuchsia^=#FF00FF|gray^=#808080|green^=#008000|lime^=#00FF00|maroon^=#800000|navy^=#000080|olive^=#808000|purple^=#800080|red^=#FF0000|silver^=#C0C0C0|teal^=#008080|white^=#FFFFFF|yellow^=#FFFF00
  568.  
  569. H="_CreateList"
  570. ^!If ^$GetSelSize$ > 0 FormatSelection
  571. ^!Set %Count%=^?{How many items?=1|2|_3|4|5|6|7|8|9}
  572. ^!InsertHtml <^&>^P^$StrFill("  <LI></LI>^P";^%Count%)$</^&>^P
  573. ^!Goto End
  574.  
  575. :FormatSelection
  576. ^!Select PARAGRAPHS
  577. ^!SetListDelimiter ^P
  578. ^!SetArray %Items%=^$GetSelection$
  579.  
  580. ^!Set %Indent%="  "
  581. ^!Set %GroupIndent%=""
  582. ^!Set %IndentSize%=^$Calc(^$StrSize("^%Items1%!")$ - ^$StrSize("^$StrTrim("^%Items1%!")$")$)$
  583. ^!If ^%IndentSize% > 0 ^!Set %Indent%=^$StrCopy("^%Items1%";1;^%IndentSize%)$
  584. ^!If ^%IndentSize% > 2 ^!Set %GroupIndent%=^$StrCopy("^%Indent%";1;^$Calc(^%IndentSize% - 2)$)$
  585.  
  586. ^!Set %Index%=1; %ItemsCount%=^%Items0%; %ListStr%=^%GroupIndent%<^&>^P
  587. ^!If ^%ItemsCount% > 1 ^!Dec %ItemsCount%
  588.  
  589. :StartLoop
  590. ^!If ^%Index% > ^%ItemsCount% EndLoop
  591. ^!Set %Line%=^$StrTrim("^%Items^%Index%%")$
  592. ^!IfFalse ^$IsEmpty("^%Line%")$ ^!Set %Line%=^%Indent%<LI>^%Line%</LI>
  593. ^!Set %ListStr%=^%ListStr%^%Line%^P
  594. ^!Inc %Index%
  595. ^!Goto StartLoop
  596.  
  597. :EndLoop
  598. ^!InsertHtml ^%ListStr%^%GroupIndent%</^&>^P
  599.  
  600. H="_CheckLogical"
  601. ^!IfFalse ^$IsEmpty(^%p_LogicalTag%)$ CheckKeyboard
  602. ^!Set %p_LogicalTag%=^$GetValue("HTML_Logical")$
  603. ^!IfFalse ^$IsEmpty(^%p_LogicalTag%)$ CheckKeyboard
  604. ^!Set %p_LogicalTag%=False
  605. ^!SaveValue HTML_Logical=^%p_LogicalTag%
  606.  
  607. :CheckKeyboard
  608. ^!IfFalse ^$IsCtrlKeyDown$ End
  609. ^!Set %Value%=True
  610. ^!IfTrue "^%p_LogicalTag%" ^!Set %Value%=False
  611. ^!Set %p_LogicalTag%=^%Value%
  612. ^!SaveValue HTML_Logical=^%p_LogicalTag%
  613.