<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <META NAME="generator" CONTENT="http://txt2tags.org"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> <TITLE>TXT2TAGS SAMPLE</TITLE> </HEAD><BODY BGCOLOR="white" TEXT="black"> <CENTER> <H1>TXT2TAGS SAMPLE</H1> <FONT SIZE="4"><I>Aurelio Jargas</I></FONT><BR> <FONT SIZE="4">03/18/2013</FONT> </CENTER> <P> This text is before the introduction. </P> <P> But it's OK. </P> <H1>Introduction</H1> <P> Welcome to the txt2tags sample file. </P> <P> Here you have examples and a brief explanation of all marks. </P> <P> The first 3 lines of this file are used as headers, on the following format: </P> <PRE> line1: document title line2: author name, email line3: date, version </PRE> <P> Lines with balanced equal signs = around are titles. </P> <H1>Fonts and Beautifiers</H1> <P> We have two sets of fonts: </P> <P> The NORMAL type that can be improved with beautifiers. </P> <P> The TYPEWRITER type that uses monospaced font for pre-formatted text. </P> <P> We will now enter on a subtitle... </P> <H2>Beautifiers</H2> <P> The text marks for beautifiers are simple, just as you type on a plain text email message. </P> <P> We use double *, /, - and _ to represent <B>bold</B>, <I>italic</I>, <S>strike</S> and <U>underline</U>. </P> <P> The <B><I>bold italic</I></B> style is also supported as a combination. </P> <H2>Pre-Formatted Text</H2> <P> We can put a code sample or other pre-formatted text: </P> <PRE> here is pre-formatted //marks// are **not** ``interpreted`` </PRE> <P> And also, it's easy to put a one line pre-formatted text: </P> <PRE> prompt$ ls /etc </PRE> <P> Or use <CODE>pre-formatted</CODE> inside sentences. </P> <H2>More Cosmetics</H2> <P> Special entities like email (<A HREF="mailto:duh@somewhere.com">duh@somewhere.com</A>) and URL (<A HREF="http://www.duh.com">http://www.duh.com</A>) are detected automagically, as long as the horizontal line: </P> <HR NOSHADE SIZE=1> <P> ^ thin or large v </P> <HR NOSHADE SIZE=5> <P> You can also specify an <A HREF="http://duh.org">explicit link</A> or an <A HREF="mailto:duh@somewhere.com">explicit email</A> with label. </P> <P> And remember, </P> <BLOCKQUOTE> A TAB in front of the line does a quotation. <BLOCKQUOTE> More TABs, more depth (if allowed). </BLOCKQUOTE> </BLOCKQUOTE> <P> Nice. </P> <H1>Lists</H1> <P> A list of items is natural, just putting a <B>dash</B> or a <B>plus</B> at the beginning of the line. </P> <H2>Plain List</H2> <P> The dash is the default list identifier. For sublists, just add <B>spaces</B> at the beginning of the line. More spaces, more sublists. </P> <UL> <LI>Earth <UL> <LI>America <UL> <LI>South America <UL> <LI>Brazil <UL> <LI>How deep can I go? </UL> </UL> </UL> <LI>Europe <UL> <LI>Lots of countries </UL> </UL> <LI>Mars <UL> <LI>Who knows? </UL> </UL> <P> The list ends with <B>two</B> consecutive blank lines. </P> <H2>Numbered List</H2> <P> The same rules as the plain list, just a different identifier (plus). </P> <OL> <LI>one <LI>two <LI>three <UL> <LI>mixed lists! <LI>what a mess <OL> <LI>counting again <LI>... </OL> </UL> <LI>four </OL> <H2>Definition List</H2> <P> The definition list identifier is a colon, followed by the term. The term contents is placed on the next line. </P> <DL> <DT>orange</DT><DD> a yellow fruit <DT>apple</DT><DD> a green or red fruit <DT>other fruits</DT><DD> <UL> <LI>wee! <LI>mixing lists <OL> <LI>again! <LI>and again! </OL> </UL> </DL> <H1>Tables</H1> <P> Use pipes to compose table rows and cells. Double pipe at the line beginning starts a heading row. Natural spaces specify each cell alignment. </P> <TABLE ALIGN="center" BORDER="1" CELLPADDING="4"> <TR> <TD>cell 1.1</TD> <TD ALIGN="center">cell 1.2</TD> <TD ALIGN="right">cell 1.3</TD> </TR> <TR> <TD>cell 2.1</TD> <TD ALIGN="center">cell 2.2</TD> <TD ALIGN="right">cell 2.3</TD> </TR> <TR> <TD>cell 3.1</TD> <TD ALIGN="center">cell 3.2</TD> <TD ALIGN="right">cell 3.3</TD> </TR> </TABLE> <TABLE BORDER="1" CELLPADDING="4"> <TR> <TH>heading 1</TH> <TH>heading 2</TH> <TH>heading 3</TH> </TR> <TR> <TD>cell 1.1</TD> <TD ALIGN="center">cell 1.2</TD> <TD ALIGN="right">cell 1.3</TD> </TR> <TR> <TD>cell 2.1</TD> <TD ALIGN="center">cell 2.2</TD> <TD ALIGN="right">cell 2.3</TD> </TR> </TABLE> <TABLE ALIGN="center" BORDER="1" CELLPADDING="4"> <TR> <TH>heading 1</TH> <TD ALIGN="center">cell 1.1</TD> <TD ALIGN="right">cell 1.2</TD> </TR> <TR> <TH>heading 2</TH> <TD ALIGN="center">cell 2.1</TD> <TD ALIGN="right">cell 2.2</TD> </TR> <TR> <TH>heading 3</TH> <TD ALIGN="center">cell 3.1</TD> <TD ALIGN="right">cell 3.2</TD> </TR> </TABLE> <TABLE BORDER="1" CELLPADDING="4"> <TR> <TH>heading</TH> <TH>heading 1</TH> <TH>heading 2</TH> </TR> <TR> <TH>heading 1</TH> <TD ALIGN="center">cell 1.1</TD> <TD ALIGN="right">cell 1.2</TD> </TR> <TR> <TH>heading 2</TH> <TD ALIGN="center">cell 2.1</TD> <TD ALIGN="right">cell 2.2</TD> </TR> </TABLE> <P> Without the last pipe, no border: </P> <TABLE ALIGN="center" CELLPADDING="4"> <TR> <TD>cell 1.1</TD> <TD ALIGN="center">cell 1.2</TD> <TD ALIGN="right">cell 1.3</TD> </TR> <TR> <TD>cell 2.1</TD> <TD ALIGN="center">cell 2.2</TD> <TD ALIGN="right">cell 2.3</TD> </TR> <TR> <TD>cell 3.1</TD> <TD ALIGN="center">cell 3.2</TD> <TD ALIGN="right">cell 3.3</TD> </TR> </TABLE> <TABLE CELLPADDING="4"> <TR> <TH>heading 1</TH> <TH>heading 2</TH> <TH>heading 3</TH> </TR> <TR> <TD>cell 1.1</TD> <TD ALIGN="center">cell 1.2</TD> <TD ALIGN="right">cell 1.3</TD> </TR> <TR> <TD>cell 2.1</TD> <TD ALIGN="center">cell 2.2</TD> <TD ALIGN="right">cell 2.3</TD> </TR> </TABLE> <TABLE ALIGN="center" CELLPADDING="4"> <TR> <TH>heading 1</TH> <TD ALIGN="center">cell 1.1</TD> <TD ALIGN="right">cell 1.2</TD> </TR> <TR> <TH>heading 2</TH> <TD ALIGN="center">cell 2.1</TD> <TD ALIGN="right">cell 2.2</TD> </TR> <TR> <TH>heading 3</TH> <TD ALIGN="center">cell 3.1</TD> <TD ALIGN="right">cell 3.2</TD> </TR> </TABLE> <TABLE CELLPADDING="4"> <TR> <TH>heading</TH> <TH>heading 1</TH> <TH>heading 2</TH> </TR> <TR> <TH>heading 1</TH> <TD ALIGN="center">cell 1.1</TD> <TD ALIGN="right">cell 1.2</TD> </TR> <TR> <TH>heading 2</TH> <TD ALIGN="center">cell 2.1</TD> <TD ALIGN="right">cell 2.2</TD> </TR> </TABLE> <H1>Special Entities</H1> <P> Because things were too simple. </P> <H2>Images</H2> <P> The image mark is as simple as it can be: <CODE>[filename]</CODE>. </P> <center><IMG ALIGN="middle" SRC="img/photo.jpg" BORDER="0" ALT=""></center> <P> And with some targets the image is linkable : </P> <P> <A HREF="http://www.txt2tags.org"><IMG ALIGN="middle" SRC="img/photo.jpg" BORDER="0" ALT=""></A> </P> <UL> <LI>The filename must end in PNG, JPG, GIF, or similar. <LI>No spaces inside the brackets! </UL> <H2>Other</H2> <P> When the target needs, special chars like <, > and & are escaped. </P> <P> The handy <CODE>%%date</CODE> macro expands to the current date. </P> <P> So today is 20130530 on the ISO <CODE>YYYYMMDD</CODE> format. </P> <P> You can also specify the date format with the %? flags, as <CODE>%%date(%m-%d-%Y)</CODE> which gives: 05-30-2013. </P> <P> That's all for now. </P> <HR NOSHADE SIZE=1> <P> <IMG ALIGN="left" SRC="img/t2tpowered.png" BORDER="0" ALT=""> (<A HREF="sample.t2t">sample.t2t</A>) </P> <!-- html code generated by txt2tags 2.6.1148 (http://txt2tags.org) --> <!-- cmdline: txt2tags -t html samples/sample.t2t --> </BODY></HTML>