[ܸ|English]

htmlgen.pl Manual Page

- The Simplest HTML Generator -


If you can read Japanese, please read Japaese Version for more information.

Index

  1. Index
  2. Description
  3. Feature
  4. Update History
  5. Download
  6. Usage
  7. Options
  8. Grammar
  9. Sample
  10. Test
  11. Note
  12. Notice
  13. Colophon

Description

This is a Perl script to generate an html page from wiki-like source code. You should install Perl Interpreter such as ActivePerl to run this.

I'm intended to use external (Cascading) Style Sheet to specify page styles. So htmlgen.pl doesn't support many decoration tags such as <font>.

Feature

Update History

Download

Here is the newest version.

Usage

For Windows, type

perl htmlgen.pl [options] <source file> > <output file>

or

perl htmlgen.pl [options] < <source file> > <output file>

for generate an HTML to <output file> from <source file>.

Options

You can add one or more options following:

Option Function
--nofooter Delete page footer.
--notopindex Remove top level header (h1) from #contents;.
--template Generate source template.
--template_css Generate css template.

Grammar

Function Syntax
Function Syntax
Page Level
Page Title title : <title>
Character Set charset : <charset>
Language language : <lang>
Author author : <author>
Description description : <description>
Keyword keywords : <keyword>,<keyword>,...,<keyword>
Import Style Sheet stylesheet : <url>, <media>
Import Script script : <script>, <mime type>
Copyright Spec. copyright : <copyright>
Script Pragma pragma : [nofooter]
Block Element
Quote > <text>
Block Quote >> ... <<
Preformatted Text >|| ... ||<
Ascii Art >$$ ... $$<
Defined List :<word>|<desctiption>
Unordered List*2 - <text>
-- <text>
...
--...- <text>
Ordered List*3 + <text>
++ <text>
...
++...+ <text>
Header * <level 1 title>
** <level 2 title>
...
****** <level 6 title>
Source Block*4 [<class name>][#<id>] { ... contents ... }
Naked Block*5 naked { ... <html source> ... }
Horizontal Line -----
Page Content Index #contents;
Include Another File #include(<file>);
Table
Content |abc|def|...|ghi|
Header |header1|header2|...|headerN|h
Footer |footer1|footer2|...|footerN|t
Middle Header |header1|header2|...|headerN|m
Format Spec. |<format1>|<format2>|...|<formatN>|f
format=[(left|right|center)][,width=<width>][,header][,#id][,[class]]
Caption |<caption>|c
Join with left cell <
Join with upper cell ^
Inline Element
Strong '' ... ''
Emphasis ** ... **
Italic !! ... !!
Under Line __ ... __
Strike %% ... %%
Inserted ++ ... ++
Deleted -- ... --
Ruby ^<text>(<ruby>)
Double Ruby*6 ^^<text>(<ruby1>,<ruby2>)
Newline $$
Footnote (( ... ))
Source Code {{ ... <code> ... }}
Link [[<link text>:<url>]]
Insert Image #img(url=<url>,alt=<alternative text>[,size=<width>x<height>][,nolink]);
nolink : Don't make hyper-link at the image.
Insert Processed Date #now;
Insert Source Created Time #created;
Insert Source Modified Time #modified;
Tag*7 #span(class=<class>[,id=<id>]){ ... }
Comment // ...
Escape Following Special Character \

Sample

Test

You can test this script without install.

Note

Notice

Colophon

Author
Tomoya NAKAGAWA
Last Update
2009/11/23 23:22:34