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]