_ClipPutHTML‎ > ‎

PutHTMLExample

Ascend4nt's AutoIT Code License agreement:
While I provide this source code freely, if you do use the code in your projects, all I ask is that:
  1. If you provide source, keep the header as I have put it, OR, if you expand it, then at least acknowledge me as the original author, and any other authors I credit
  2. If the program is released, acknowledge me in your credits (it doesn't have to state which functions came from me, though  again if the source is provided - see #1)
  3. The source on it's own (as opposed to part of a project) can not be posted unless a link to the page(s) where the code were retrieved from is provided and a message stating that the latest updates will be available on the page(s) linked to.
  4. Pieces of the code can however be discussed on the threads where Ascend4nt has posted the code without worrying about further linking.

- Example Usage of _ClipPutHTML CODE STARTS HERE -

Local $sHTMLStr,$sPlainTextStr

$sHTMLStr='<html><head>'&@CRLF & "  <title>Page Title</title>"&@CRLF & _
'  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">'&@CRLF & _
"</head>"&@CRLF & "<body>"&@CRLF & "<h1>Headline Text</h1>"&@CRLF & _
"<p>This is a paragraph showing the formatting possibilities using the "&@CRLF & _
'<a href="http://sites.google.com/site/ascend4ntscode/clipputhtml">_ClipPutHTML() functions</a>.'&@CRLF& _
" The regular modifiders, such as <strong>bold</strong>, <i>italics</i>, and <u>underlines</u> work as usual,"&@CRLF& _
" just like all other HTML formatting.</p>"&@CRLF & "<p>Â </p>"&@CRLF & _
"<p><strong>Here's an example list:</strong></p>"&@CRLF & "<ul>"&@CRLF & _
"   <li>List <i>item</i> #1.</li>"&@CRLF & _
"   <li>List <i>item</i> #2.</li>"&@CRLF & _
 '  <li>List <i>item</i> #3 with a <a href="http://www.google.com">Hyperlink</a></li>'&@CRLF & _
"</ul>"&@CRLF & "</body>"&@CRLF & "</html>"

$sPlainTextStr="Headline Text"&@CRLF&@CRLF& _
"This is a paragraph showing the formatting possibilities using the _ClipPutHTML() functions."& _
"The regular modifiders, such as bold, italics, and underlines work as usual, just like all other HTML formatting."&@CRLF&@CRLF& _
" Here's an example list:"&@CRLF& _
"    * List item #1."&@CRLF& _
"    * List item #2."&@CRLF& _
"    * List item #3 with a Hyperlink"&@CRLF

_ClipPutHTML($sHTMLStr,$sPlainTextStr)

- Example 'paste' output STARTS HERE -


Headline Text

This is a paragraph showing the formatting possibilities using the _ClipPutHTML() functions. The regular modifiders, such as bold, italics, and underlines work as usual, just like all other HTML formatting.

Here's an example list:
  • List item #1.
  • List item #2.
  • List item #3 with a Hyperlink

Comments