IntroductionHtmlpp is a preprocessor, that is, a software that translates a text file into another one with the help of a simple macro language. The main idea of htmlpp is to define macros that simplify greatly the construction of Web pages. In this page, I try to give you a basic understanding of htmlpp's language (prehtml) so that you can easily make small correction to my pages (and so that you can even try to write you own page).
First steps in Htmlpp
Main ideasHTML is a markup language. It uses markups to describe the layout and the presentation of a page. HTML uses opening and closing markup:
<opening> </closing>Htmlpp is also based on markups. The general form of markup used by the
<#opening> </#closing>Htmlpp does not modify document HTML markups, it just compute the result of prehtml markups. Therefore, a HTML document is not modified in general by htmlpp.
Global layout of the Darkover siteI've written some macros that give to the Darkover site its global layout. You just have to write the content of a page and htmlpp will add colors, icons, a signature and a navigation column to the resulting page. If you write for instance the following prehtml code in a file name
<#keywords>Try</#keywords> <#description>A try</#description> <#titlehead>My first try</#titlehead> This is the content.then htmlpp will produce a file named
A more complex exampleHere is a more complex example. This is the content of a file named
<#keywords>Example</#keywords> <#description>An example page</#description> <#titlehead>Example</#titlehead> <#h2>A subtitle for this page</#h2> Plain HTML can be used : <ul> <li>here <li>it goes... </ul> You should used what follows: <h2>Another subtitle for this page</h2> which has not the right color! As a conclusion, let's provide a link to the <#a href="htmlpp.html">htmlpp</#a> page.After using htmlpp, you'll obtain a page named example.fr.html.
My last adviceThe best way to correct a page of the site is to use the bottom link of each page which gives you an access to the corresponding source file. You can edit this file and send it back to me. I'll be pleased to include your correction into the site. Don't forget to save the file as plain text.
source file (Last modification: Wed Apr 21 17:21:45 1999)