txt2tags UM arquivo fonte, VÁRIOS destinos %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Welcome to the sources of the txt2tags site % % This is a live example of a marked up file in the txt2tags format. % There are some special tricks you can learn by reading. % As you may be wondering, lines starting with % are ignored. % % Txt2tags generates the HTML code for this text, and all the page % formatting (colors, sizes, fonts, blocks, position) is made on an % external CSS file (http://txt2tags.sf.net/site.css). % % Saw that first lines on the top? They are the page heading. % % Now comes some special configuration directives, starting with %! % % The config used by all pages are centralized on this file % (http://txt2tags.sf.net/config.t2t) and the "includeconf" % command reads it. % %!includeconf: config.t2t %%% Some post processing filter magic (search & replace) % Adds an ID to the tag % Note: the (?i) makes the pattern case insensitive (avoids headaches) %!postproc: '(?i)( tag %!postproc: '(?i)()' \1\n % Adds class name to the spash image %!postproc: '(download-v24-pt.png")' '\1 class="splashimg"' % Fills the "PHP" tooltip on "About this site". See config.t2t for details. %!postproc: {tooltip1} Exceção: O Txt2tags Online é em PHP pois precisa ser interativo. % meta: keywords %!postproc: () \n\1 % meta: description %!postproc: () \n\1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% All the config is made, so the real contents begins now % The sidebar with the menu links are on a separated file, included now %!include: menu.t2t % And here's our first heading, level 2 (see the two equal signs) %%%== Novidades == %%%% The recent news are on a separated file also (handy huh?) %%%%!include: ../headlines.t2t % DOWNLOAD % [[../img/download-v24-pt.png] download.html] == Sobre o txt2tags == O txt2tags é um gerador de documentos. Ele recebe um arquivo texto com marcações simples como ""**negrito**"" e ""//itálico//"" e o converte para os seguintes formatos: - HTML - XHTML - SGML - LaTeX - Lout - Man page - MoinMoin - MagicPoint - PageMaker - [Saiba mais... features.html] - [Experimente agora mesmo! online.php] % Saw how lists are simple? The "Read more" is a link. % % Now follows a definition list. The leading spaces are optional. : Autor: [Aurélio Marinho Jargas http://aurelio.net] : Palavras-chave: livre, grátis, conversor, texto, [marcas markup.html], simples, [Linux download.html], [Mac download.html], [Windows {URLWIN}], [GUI ../img/gui.png], [CLI ../img/help.png], [Web {URLONLINE}], [Python http://python.org], [GPL http://directory.fsf.org/txt2tags.html] % Write the way you want. It will get right on the screen. % You got it, right? The markup is damn simple. == Sobre este site == Este site é 100% feito com txt2tags e [CSS ../site.css]. Não contém Javascript, CGI ou [PHP #tooltip1], apenas páginas HTML estáticas e [válidas {URLHTMLVALIDATOR}]. Você pode ver o arquivo texto que é o fonte de cada página, basta clicar no link "Ver arquivo fonte" no rodapé. Estude os fontes para aprender rapidamente todas as marcas. % Tip for the source readers: % Changing the .html by .t2t on the page address also works A hospedagem é cedida pelo [[SFlogo.gif] {URLSF}]. % The footer is an external file %!include: footer.t2t